:root {
    --primary-color: #4285f4;
    --secondary-color: #34a853;
    --accent-color: #ea4335;
    --dark-color: #003366;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: var(--text-color);
    line-height: 1.6;
}

nav {
    background-color: var(--dark-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-links {
    display: flex;
    flex: 1;
    justify-content: flex-end;
}

.nav-links #loginLink,
.nav-links #logoutLink {
    margin-left: auto;
}

nav a {
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    padding: 18px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

nav a.active {
    background-color: var(--primary-color);
    font-weight: 500;
}

nav a.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background-color: white;
}

nav a i {
    margin-right: 8px;
    font-size: 0.9em;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

.header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.header img {
    height: 100px;
    width: auto;
    max-width: 100%;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.search-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.search-box {
    width: 100%;
    max-width: 600px;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-box:focus {
    outline: none;
    border-color: var(--primary-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 40px;
}

.data-table thead {
    background-color: var(--primary-color);
    color: white;
}

.data-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 500;
}

.data-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    word-break: break-word;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.action-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background-color: var(--primary-color);
    color: white;
    white-space: nowrap;
}

.action-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 20px;
}

/* Loading spinner */
.loading {
    padding: 30px;
    text-align: center;
    color: var(--text-light);
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* User info styles */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--light-color);
    cursor: pointer;
    transition: transform 0.2s;
}

.user-avatar:hover {
    transform: scale(1.05);
}

/* Image Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #ffffff05;
    border-radius: 10px;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    padding: 20px;
    text-align: center;
    position: relative;
}

.modal-image {
    max-height: 70vh;
    max-width: 80%;
    border-radius: 5px;
    margin-bottom: 15px;
}

.modal-user-info {
    text-align: center;
    margin-top: 10px;
}

.modal-username {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: white
    
}

.modal-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.close-modal {
    position: absolute;
    top: 0px;
    right: 5px;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.close-modal:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        justify-content: flex-start;
    }

    .nav-links #loginLink,
    .nav-links #logoutLink {
        margin-left: 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    nav a {
        padding: 12px;
        justify-content: center;
    }
    
    .nav-container {
        flex-direction: column;
        padding: 0px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header img {
        margin-bottom: 15px;
    }

    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        background: transparent;
        box-shadow: none;
    }
    
    .data-table thead {
        display: none;
    }
    
    .data-table tbody {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .data-table tr {
        display: flex;
        flex-direction: column;
        background: white;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 15px;
        border-bottom: none;
    }
    
    .data-table td {
        display: flex;
        padding: 8px 0;
        border-bottom: none;
        word-break: break-word;
        max-width: 100%;
        white-space: normal;
    }
    
    .data-table td:before {
        content: attr(data-label);
        font-weight: bold;
        width: 100px;
        flex-shrink: 0;
        color: var(--primary-color);
    }
    
    .data-table td:last-child {
        padding-bottom: 0;
    }
    
    .data-table tr:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    /* Mobile styles for user info */
    .user-info {
        flex-direction: row;
        align-items: center;
    }
    
    .data-table td[data-label="Username"]:before {
        display: none;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 30px 15px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .action-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .header img {
        height: 80px;
    }
    
    .data-table td:before {
        width: 80px;
        font-size: 0.9rem;
    }
}