/* General Page Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f2f4f7;
}

.logo {
    background-image: url('../images/caat_logo.png'); /* Your logo path */
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 120px;
    height: 50px;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.3s ease;
}


.logo:hover {
    transform: scale(1.1); /* ✅ Slight zoom when hover */
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 12px; /* Optional: spacing between logo and text */
    height: 50px; /* Match logo height for proper alignment */
}



.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 15px 30px;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.navbar button {
    background-color: #e74c3c;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

.navbar button:hover {
    background-color: #c0392b;
}

.container, .dashboard {
    max-width: 100%;
    margin: 20px auto;
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h2 {
    margin-top: 0;
    color: #34495e;
}

/* Input Forms */
input[type="text"], input[type="email"], input[type="password"], input[type="file"], select {
    width: 100%;
    padding: 10px;
    margin: 12px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

button {
    background-color: #3498db;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

button:hover {
    background-color: #2980b9;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: auto;
}

th, td {
    padding: 10px 12px;
    border: 1px solid #ddd;
    text-align: left;
    height: 42px;
}

th {
    background-color: #3498db;
    color: white;
}

tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

tbody tr:nth-child(even) {
    background-color: #f6f6f6;
}

/* Submissions List */
#submissionsList {
    margin-top: 20px;
}

.submission {
    background-color: #ecf0f1;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
}

/* Badge Styles */
.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.badge-active {
    background-color: #2ecc71;
}

.badge-pending {
    background-color: #e67e22;
}

/* Smaller Table Action Buttons */
table button {
    padding: 5px 10px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 4px;
}

table button:hover {
    opacity: 0.85;
}

table button[disabled] {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .container, .dashboard {
        margin: 20px;
        padding: 20px;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-right {
        margin-top: 10px;
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }

    .navbar button {
        margin-left: auto;
    }

    table {
        font-size: 13px;
    }

    th, td {
        padding: 8px;
    }

    .toolbar {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}
/* Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.5); /* Black with opacity */
}

.modal-content {
    background-color: #fff;
    margin: 10% auto; /* Center it */
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.3);
}
/* Make all toolbar buttons small */
.toolbar button {
    background-color: #3498db;
    color: white;
    padding: 5px 10px;         /* ✅ Smaller size */
    font-size: 10px;           /* ✅ Smaller text */
    border: none;
    border-radius: 6px;
    margin-right: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.toolbar button:hover {
    background-color: #2980b9;
}
/* Button container inside action column */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Base small button */
.btn-small {
    padding: 4px 10px;
    font-size: 10px;
    border-radius: 5px;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s ease-in-out;
}

/* Specific colors */
.btn-green {
    background-color: #27ae60;
}
.btn-green:hover {
    background-color: #1e874b;
}

.btn-blue {
    background-color: #2980b9;
}
.btn-blue:hover {
    background-color: #1c6391;
}

.btn-red {
    background-color: #e74c3c;
}
.btn-red:hover {
    background-color: #c0392b;
}

.btn-grey {
    background-color: #bdc3c7;
    cursor: default;
}
.action-buttons button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 6px;
    margin: 0 2px;
}

.action-buttons button:hover {
    opacity: 0.7;
}

.action-buttons button.btn-red:hover {
    color: #e74c3c;
}

.action-buttons button.btn-blue:hover {
    color: #2980b9;
}

/* General icon button cleanup */
/* ICON BUTTONS CLEANUP */
/* --- Clean Icon Button Styles --- */
.btn-icon {
    background: transparent !important;
    border: none !important;
    padding: 6px;
    margin-right: 4px;
    cursor: pointer;
    font-size: 18px;
    color: inherit;
    outline: none;
    box-shadow: none;
}

.btn-icon:focus,
.btn-icon:active {
    outline: none;
    box-shadow: none;
}

/* Hide hover background and apply only icon color change */
.btn-icon:hover {
    background: transparent !important;
    transform: scale(1.1); /* ✅ Slight zoom when hover */
}

/* Icon colors */
.btn-blue i { color: #3498db; }
.btn-red i { color: #e74c3c; }
.btn-green i { color: #27ae60; }
.btn-grey i { color: #95a5a6; }

/* Stronger hover colors */
.btn-blue:hover i { color: #1c6eb9; }   /* Brighter Blue */
.btn-red:hover i { color: #b91c1c; }    /* Brighter Red */
.btn-green:hover i { color: #1e8449; }  /* Brighter Green */
.btn-grey:hover i { color: #555; }      /* Darker Grey */


}
