:root {
    --primary-color: #4a6bff;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --success-color: #28a745;
    --error-color: #dc3545;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
}

/* Index Page Styles */
.left-side {
    background-color: var(--secondary-color);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-side {
    background-color: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.features {
    list-style: none;
    padding: 0;
}

.features li {
    margin: 1rem 0;
    font-size: 1.1rem;
}

.features i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.auth-buttons {
    margin-bottom: 2rem;
}

.auth-buttons .btn {
    margin: 0 0.5rem;
    padding: 0.5rem 1.5rem;
}

.icon-container {
    font-size: 8rem;
    color: var(--primary-color);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Card and Container Base Styles */
.form-container, .file-card, .alert {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: rgba(99, 99, 99, 0.1) 0px 2px 8px 0px, rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
    transition: all 0.3s ease;
}

.form-container:hover, .file-card:hover {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}

.form-container {
    max-width: 500px;
    width: 95%;
    margin: 2rem auto;
    padding: 2rem;
}

.form-container h2 {
    color: #333;
    font-weight: 700;
    margin-bottom: 2rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Headers */
.section-headers {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2rem);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    flex-wrap: wrap;
}

.section-title {
    color: #666;
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    margin: 0;
    transition: all 0.3s ease;
    position: relative;
    border: none;
    background: none;
    outline: none;
    white-space: nowrap;
}

.section-title:hover {
    color: var(--primary-color);
}

.section-title.active {
    color: var(--primary-color);
}

.section-title.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Form Styles */
.update-form {
    opacity: 0;
    display: none;
    transition: opacity 0.3s ease;
    position: relative;
}

.update-form.active {
    opacity: 1;
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: clamp(0.875rem, 2vw, 1rem);
}

.form-control {
    padding: clamp(0.5rem, 2vw, 0.75rem);
    border-radius: 5px;
    border: 1px solid #ddd;
    width: 100%;
    font-size: clamp(0.875rem, 2vw, 1rem);
    background-color: white;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 107, 255, 0.25);
}

/* Input Group for Password Fields */
.input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    margin-bottom: 1rem;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Button Styles */
.btn {
    padding: clamp(0.5rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
    font-size: clamp(0.875rem, 2vw, 1rem);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 107, 255, 0.2);
}

.btn-outline-secondary {
    background-color: white;
    border-color: #ddd;
    color: #666;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #ddd;
    color: #333;
}

/* File Grid Styles */
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.file-card {
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #000;

}

.file-card:hover {
    transform: translateY(-5px);
    box-shadow: rgba(17, 17, 26, 0.1) 0px 8px 24px, rgba(17, 17, 26, 0.1) 0px 16px 56px;
}

.file-actions {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
}

.file-actions i {
    cursor: pointer;
    color: var(--primary-color);
    transition: color 0.2s;
}

.file-actions i:hover {
    color: #3a5bef;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .file-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.25rem;
        padding: 1.25rem;
    }
}

@media (max-width: 992px) {
    .form-container {
        width: 90%;
        padding: 1.75rem;
    }

    .file-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .form-container {
        width: 85%;
        padding: 1.5rem;
        margin: 1.5rem auto;
    }

    .section-headers {
        gap: 1rem;
    }

    .file-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .file-card {
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .form-container {
        width: 92%;
        padding: 1.25rem;
        margin: 1rem auto;
    }

    .section-headers {
        flex-direction: row;
        gap: 0.75rem;
    }

    .section-title {
        padding: 0.4rem 0.8rem;
    }

    .file-grid {
        grid-template-columns: 1fr;
        padding: 0.75rem;
        gap: 1rem;
    }

    .file-card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin: 0 auto 1rem auto;
        box-sizing: border-box;
    }

    .form-group {
        margin-bottom: 1rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error and Success Messages */
.alert {
    margin: 1rem 0;
    padding: clamp(0.75rem, 2vw, 1rem);
    font-size: clamp(0.875rem, 2vw, 1rem);
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

/* Navbar Styles */
.navbar {
    padding: 0.75rem 0;
    background-color: var(--primary-color) !important;
    width: 100%;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    color: white !important;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
}

.navbar-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid white;
    object-fit: cover;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: white !important;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.nav-link:hover .nav-icon-circle {
    background: white;
    border-color: white;
}

.nav-link:hover .nav-icon-circle i {
    color: var(--primary-color);
}

.nav-link span {
    font-size: 0.875rem;
    color: white;
}

/* Main Icon Styles */
.main-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 2rem;
}

.circular-icon {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 6px solid var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .circular-icon {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 992px) {
    .navbar-logo {
        width: 40px;
        height: 40px;
    }
    
    .circular-icon {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        padding: 0 1rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .navbar-logo {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }

    .circular-icon {
        width: 180px;
        height: 180px;
        border-width: 4px;
    }

    .nav-icon-circle {
        width: 32px;
        height: 32px;
        margin-bottom: 0.25rem;
    }

    .nav-link span {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .navbar .container {
        padding: 0 0.75rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-logo {
        width: 28px;
        height: 28px;
        margin-right: 6px;
    }

    .circular-icon {
        width: 150px;
        height: 150px;
    }

    .nav-icon-circle {
        width: 28px;
        height: 28px;
    }

    .section-headers {
        gap: 1rem;
    }

    .section-title {
        font-size: 1.1rem;
        padding: 0.4rem 0.8rem;
    }

    .form-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    .form-container h2 {
        font-size: 1.5rem;
    }

    .nav-link span {
        font-size: 0.7rem;
    }
}

/* Update Details Page Specific */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 2rem;
}

.nav-tabs .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background: none;
    border-bottom: 2px solid var(--primary-color);
}

.tab-content {
    padding: 1rem 0;
}

/* Responsive Navbar */
@media (min-width: 769px) and (max-width: 1200px) {
    /* Tablet - Keep navbar similar to desktop */
    .navbar .container {
        padding: 0 1.5rem;
    }

    .navbar-logo {
        width: 35px;
        height: 35px;
    }

    .nav-icon-circle {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 768px) {
    /* Mobile navbar adjustments */
    .navbar {
        padding: 0.5rem 0;
    }

    .navbar .container {
        padding: 0 1rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .navbar-logo {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }

    .navbar-nav {
        gap: 1rem;
    }

    .nav-icon-circle {
        width: 32px;
        height: 32px;
        margin-bottom: 0.25rem;
    }

    .nav-link span {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    /* Small mobile navbar */
    .navbar .container {
        padding: 0 0.75rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-logo {
        width: 28px;
        height: 28px;
        margin-right: 6px;
    }

    .navbar-nav {
        gap: 0.75rem;
    }

    .nav-icon-circle {
        width: 28px;
        height: 28px;
    }

    .nav-link span {
        font-size: 0.7rem;
    }
}

/* Mobile and Tablet Styles */
@media (max-width: 991.98px) {
    .navbar-nav {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
        padding: 0.5rem 0;
    }

    .nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0.5rem;
    }

    .nav-icon-circle {
        margin-bottom: 0.25rem;
    }

    .section-headers {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .section-title {
        flex: 1;
        min-width: 150px;
        margin: 0.25rem;
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .update-form {
        padding: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }
}

/* Tablet specific styles */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        max-width: 95%;
    }

    .section-headers {
        gap: 1rem;
    }

    .section-title {
        font-size: 1rem;
    }
}

/* Mobile specific styles */
@media (max-width: 767.98px) {
    .container {
        padding: 0 1rem;
    }

    .section-headers {
        gap: 0.5rem;
    }

    .section-title {
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    .form-container {
        padding: 1rem;
    }
}

/* Update Details Page Specific */
.update-sections {
    width: 100%;
}

.update-section {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.update-section h3.section-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

/* Mobile and Tablet Styles */
@media (max-width: 991.98px) {
    /* Navbar adjustments */
    .navbar {
        padding: 0.5rem 0;
    }

    .navbar .container {
        padding: 0.5rem;
    }

    .navbar-nav {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        gap: 1rem;
        margin: 0;
    }

    .nav-link {
        padding: 0;
        margin: 0;
    }

    .nav-icon-circle {
        width: 36px;
        height: 36px;
        margin-bottom: 4px;
    }

    .nav-link span {
        font-size: 0.7rem;
    }

    /* Update sections adjustments */
    .form-container {
        padding: 1rem;
        margin: 0.5rem auto;
    }

    .update-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .update-section h3.section-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    .form-group {
        margin-bottom: 0.75rem;
    }

    .btn {
        padding: 0.5rem 1rem;
    }
}

/* Tablet specific styles */
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar-brand {
        font-size: 1.3rem;
    }

    .nav-icon-circle {
        width: 40px;
        height: 40px;
    }

    .nav-link span {
        font-size: 0.8rem;
    }

    .update-section {
        padding: 1.25rem;
    }

    .update-section h3.section-title {
        font-size: 1.2rem;
    }
}

/* Mobile specific styles */
@media (max-width: 767.98px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-logo {
        width: 30px;
        height: 30px;
    }

    .nav-icon-circle {
        width: 32px;
        height: 32px;
    }

    .nav-link span {
        font-size: 0.65rem;
    }

    .form-container {
        padding: 0.75rem;
    }

    .update-section {
        padding: 1rem;
    }

    .update-section h3.section-title {
        font-size: 1rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-control {
        font-size: 0.9rem;
        padding: 0.4rem 0.75rem;
    }
} 