/* General Reset and Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0; /* Removes unwanted margin that can cause spacing issues */
}

header {
    background-color: #044416;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

.dashboard-title {
    font-size: 1.5rem;
}

nav ul {
    list-style-type: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover,
nav ul li a:active {
    background-color: #004d1a;
}

main {
    padding: 30px;
    flex: 1; /* Pushes the footer to the bottom by taking up available space */
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Welcome Section */
.welcome-section {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.welcome-section h2 {
    font-size: 1.8rem;
    color: darkgreen;
}

.welcome-section p {
    font-size: 1rem;
    color: #555;
}

/* Stats Section */
.stats-container {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.stat-box {
    background-color: white;
    padding: 20px;
    width: 30%;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-box h3 {
    font-size: 1.5rem;
    color: darkgreen;
}

.stat-box p {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

/* Recent Uploads Section */
.recent-uploads {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.recent-uploads h2 {
    font-size: 1.8rem;
    color: darkgreen;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

table th {
    background-color: #f2f2f2;
}

table tr:hover {
    background-color: #f9f9f9;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-weight: bold;
    color: #34495e;
}

select,
input[type="file"],
button {
    width: 100%;
    padding: 10px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    font-size: 16px;
}

select:focus,
input[type="file"]:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 0 5px rgba(46, 204, 113, 0.5);
}

select, input[type="radio"], button {
    padding: 10px;
    margin-bottom: 15px;
}


button {
    background-color: #2ecc71;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #27ae60;
}

.view-btn {
    display: inline-block !important;
    padding: 8px 15px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    text-align: center !important;
    text-decoration: none !important;
    color: #fff !important;
    background-color: #28a745 !important; /* Green color */
    border: none !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
}

.view-btn:hover {
    background-color: #218838 !important; /* Darker green on hover */
    transform: scale(1.05) !important; /* Slight zoom effect */
}

.view-btn:active {
    background-color: #1e7e34 !important; /* Even darker green on click */
    transform: scale(0.98) !important; /* Slight shrink effect */
}

/* View More Button */
.view-more-btn {
    display: inline-block;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background-color: #007bff; /* Blue color */
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.view-more-btn:hover {
    background-color: #0056b3; /* Darker blue on hover */
    transform: scale(1.05);
}

.view-more-btn:active {
    background-color: #004494; /* Even darker blue when clicked */
    transform: scale(0.98);
}

/* Back to Dashboard Button */
.back-btn {
    display: inline-block;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background-color: #6c757d; /* Gray color */
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.back-btn:hover {
    background-color: #5a6268; /* Darker gray on hover */
    transform: scale(1.05);
}

.back-btn:active {
    background-color: #4e555b; /* Even darker gray when clicked */
    transform: scale(0.98);
}


/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding: 15px;
    }

    h2 {
        font-size: 20px;
    }

    button {
        font-size: 16px;
    }
}