:root {
    --accent-color: #c87533;
    --accent-light: #d4a574;
    --accent-contrast: #3373c7;
}

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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, var(--accent-color) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding-top: 80px;
}

/* ===== PAGE WRAPPER ===== */
.page-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    min-height: calc(100vh - 80px);
}

/* ===== NAVIGATION BAR ===== */
.navbar {
    background: rgba(30, 30, 30, 0.95);
    border-bottom: 3px solid var(--accent-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

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

.nav-logo {
    color: var(--accent-light);
    font-size: 1.8em;
    font-weight: bold;
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 5px;
}

.nav-menu {
    position: relative;
}

.nav-dropdown-btn {
    background: var(--accent-color);
    color: #1a1a1a;
    padding: 10px 25px;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-dropdown-btn:hover {
    background: var(--accent-contrast);
    transform: translateY(-2px);
    color: #fff;
}

.nav-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    background: rgba(40, 40, 40, 0.98);
    min-width: 200px;
    border: 2px solid var(--accent-color);
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.nav-dropdown.show {
    display: block;
}

.nav-dropdown a {
    display: block;
    padding: 15px 20px;
    color: var(--accent-light);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border-bottom: 1px solid rgba(200, 117, 51, 0.2);
}

.nav-dropdown a:last-child {
    border-bottom: none;
}

.nav-dropdown a:hover {
    background: var(--accent-contrast);
    padding-left: 30px;
    color: #fff;
}

/* ===== FORM CONTAINER (Shared across all form pages) ===== */
.form-container {
    background: rgba(58, 58, 58, 0.5);
    width: 90%;
    max-width: 800px;
    margin: 30px auto;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--accent-color);
    
    /* Gear-like edges */
    clip-path: polygon(
        0 30px, 30px 30px, 30px 0,
        calc(100% - 30px) 0, calc(100% - 30px) 30px, 100% 30px,
        100% calc(25% - 20px), calc(100% - 25px) calc(25% - 20px), 
        calc(100% - 25px) calc(25% + 20px), 100% calc(25% + 20px),
        100% calc(50% - 20px), calc(100% + 20px) calc(50% - 20px),
        calc(100% + 20px) calc(50% + 20px), 100% calc(50% + 20px),
        100% calc(75% - 20px), calc(100% - 25px) calc(75% - 20px),
        calc(100% - 25px) calc(75% + 20px), 100% calc(75% + 20px),
        100% calc(100% - 30px), calc(100% - 30px) calc(100% - 30px),
        calc(100% - 30px) 100%, 30px 100%,
        30px calc(100% - 30px), 0 calc(100% - 30px),
        0 calc(75% + 20px), -20px calc(75% + 20px),
        -20px calc(75% - 20px), 0 calc(75% - 20px),
        0 calc(50% + 20px), 25px calc(50% + 20px),
        25px calc(50% - 20px), 0 calc(50% - 20px),
        0 calc(25% + 20px), -20px calc(25% + 20px),
        -20px calc(25% - 20px), 0 calc(25% - 20px)
    );
}

.form-container h1 {
    color: #fff;
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
}

.form-subtitle {
    color: #fff;
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 15px;
    border-radius: 5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    color: #fff;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.1em;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.required {
    color: var(--accent-color);
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 12px;
    background: rgba(40, 40, 40, 0.8);
    border: 2px solid var(--accent-color);
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 1em;
    font-weight: bold;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-contrast);
    box-shadow: 0 0 10px rgba(212, 165, 116, 0.3);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

.submit-btn {
    background: var(--accent-color);
    color: #1a1a1a;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: var(--accent-contrast);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    color: #fff;
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

/* ===== STATUS MESSAGES ===== */
.status-area {
    margin-top: 20px;
    text-align: center;
}

.status-message {
    padding: 15px;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.1);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.status-message.success {
    color: #4ade80;
    border: 2px solid #4ade80;
}

.status-message.error {
    color: #f87171;
    border: 2px solid #f87171;
}

.form-note {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--accent-color);
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 0.9em;
    font-weight: bold;
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* ===== DASHBOARD-SPECIFIC STYLES (for index.html) ===== */
.slideshow-container {
    position: relative;
    max-width: 1200px;
    margin: 30px auto;
    height: 500px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.slide {
    display: none;
    position: relative;
    width: 100%;
    height: 100%;
}

.slide.active {
    display: block;
    animation: fadeIn 1s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-left: 5px solid var(--accent-color);
    border-radius: 5px;
    max-width: 600px;
}

.slide-caption h2 {
    color: #fff;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.slide-caption p {
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: var(--accent-light);
    border: 2px solid var(--accent-color);
    padding: 15px 20px;
    font-size: 1.5em;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
}

.slide-btn:hover {
    background: var(--accent-contrast);
    color: #fff;
    border-color: var(--accent-contrast);
}

.slide-btn.prev {
    left: 20px;
}

.slide-btn.next {
    right: 20px;
}

.dashboard-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
}

.dashboard-title {
    color: #fff;
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    border-radius: 10px;
    display: inline-block;
    width: auto;
    margin-left: 50%;
    transform: translateX(-50%);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.dashboard-card {
    background: linear-gradient(145deg, #3a3a3a, #2d2d2d);
    padding: 30px;
    border-radius: 10px;
    border: 3px solid var(--accent-color);
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.dashboard-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border-color: var(--accent-contrast);
}

.card-icon {
    font-size: 4em;
    margin-bottom: 20px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.dashboard-card h3 {
    color: #fff;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.dashboard-card p {
    color: #fff;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 25px;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.08);
    padding: 10px 15px;
    border-radius: 5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.card-btn {
    display: inline-block;
    background: var(--accent-color);
    color: #1a1a1a;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-btn:hover {
    background: var(--accent-contrast);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    color: #fff;
}

/* ===== TASK-SPECIFIC STYLES ===== */
.task-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.task-item {
    background: rgba(50, 50, 50, 0.6);
    padding: 20px;
    border-radius: 8px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.task-item h3 {
    color: #fff;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.task-description {
    color: #fff;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.08);
    padding: 10px;
    border-radius: 4px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    body {
        padding-top: 120px;
    }

    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-container {
        padding: 25px;
        width: 95%;
    }
    
    .form-container h1 {
        font-size: 2em;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
    
    .slideshow-container {
        height: 300px;
        margin: 20px 15px;
    }
    
    .slide-caption {
        bottom: 15px;
        left: 15px;
        padding: 15px;
    }
    
    .slide-caption h2 {
        font-size: 1.4em;
    }
    
    .slide-caption p {
        font-size: 1em;
    }
    
    .dashboard-title {
        font-size: 2em;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== ENHANCED TOGGLE BUTTON STYLES ===== */
.toggle-container {
    display: flex;
    gap: 0;
    background: rgba(40, 40, 40, 0.8);
    border-radius: 8px;
    padding: 4px;
    margin-top: 10px;
    border: 2px solid rgba(200, 117, 51, 0.3);
}

.toggle-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: #e0e0e0;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
}

.toggle-btn.active {
    background: var(--accent-color);
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(200, 117, 51, 0.4);
}

.toggle-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
}

/* ===== FILE UPLOAD STYLES ===== */
.file-upload-container {
    margin-top: 10px;
}

#upload-btn {
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed var(--accent-color);
    margin-bottom: 15px;
    transition: all 0.3s;
}

#upload-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-contrast);
}

#file-preview {
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 2px solid var(--accent-color);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#file-name {
    color: #e0e0e0;
    font-weight: bold;
}

#file-size {
    color: #999;
    font-size: 0.9em;
    margin-left: 10px;
}

#remove-file {
    background: #c73333;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

#remove-file:hover {
    background: #a52a2a;
    transform: scale(1.05);
}

#image-preview {
    max-width: 100%;
    max-height: 300px;
    margin-top: 15px;
    border-radius: 8px;
    border: 2px solid rgba(200, 117, 51, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ===== ENTRY SECTION ANIMATIONS ===== */
.entry-section {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== IMPROVED FORM FOCUS STATES ===== */
input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-contrast);
    box-shadow: 0 0 15px rgba(51, 115, 199, 0.5);
    transform: scale(1.01);
}

/* ===== LOADING STATE FOR SUBMIT BUTTON ===== */
.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.4;
    }
}

/* ===== SUCCESS/ERROR MESSAGE ANIMATIONS ===== */
.status-message {
    animation: slideIn 0.3s ease;
}

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

/* ===== MOBILE IMPROVEMENTS ===== */
@media (max-width: 768px) {
    .toggle-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .toggle-btn {
        width: 100%;
    }
    
    #upload-btn {
        padding: 15px;
        font-size: 0.9em;
    }
}
