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

:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --dark-color: #2C3E50;
    --light-color: #ECF0F1;
    --success-color: #27AE60;
    --error-color: #E74C3C;
    --warning-color: #F39C12;
}

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

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


header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    animation: slideDown 0.6s ease-out;
}

header .tagline {
    font-size: 1.2em;
    opacity: 0.9;
    animation: slideUp 0.6s ease-out;
}

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

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


.navbar {
    background-color: var(--dark-color);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);

   
    border-radius: 0 0 15px 15px;
    overflow: hidden;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.navbar li {
    margin: 0;
}

.navbar a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.navbar a:hover {
    background-color: var(--primary-color);
   
    transform: none;
    box-shadow: 0 8px 18px rgba(44, 62, 80, 0.12);
   
   
}
.navbar a.active {
   
    background-color: var(--primary-color);
    transform: none;
}


main {
    min-height: calc(100vh - 300px);
    padding: 40px 0;
}


.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.hero h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    animation: fadeIn 0.8s ease-out;
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}


.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #FF5252;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

.btn-secondary:hover {
    background-color: #FFD93D;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 230, 109, 0.3);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #229954;
    transform: translateY(-2px);
}

.btn-danger {
    background-color: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background-color: #C0392B;
    transform: translateY(-2px);
}


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

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.feature-card p {
    color: #666;
    font-size: 0.95em;
}


.form-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 40px auto;
}

.form-container h2 {
    color: var(--dark-color);
    margin-bottom: 30px;
    text-align: center;
    font-size: 2em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 600;
}


.form-group .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-group .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #DDD;
    border-radius: 5px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--error-color);
    background-color: #FFF5F5;
}

.error-message {
    color: var(--error-color);
    font-size: 0.85em;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.form-group.has-error .error-message {
    display: block;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.form-actions button {
    flex: 1;
    padding: 12px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-actions .btn-submit {
    background-color: var(--primary-color);
    color: white;
}

.form-actions .btn-submit:hover {
    background-color: #FF5252;
}

.form-actions .btn-reset {
    background-color: #BDC3C7;
    color: white;
}

.form-actions .btn-reset:hover {
    background-color: #95A5A6;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    color: #666;
    border-radius: 10px;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}


footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-radius: 15px 15px 0 0;
}


.dashboard {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 20px;
    margin-top: 30px;
}

.sidebar {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.sidebar h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    display: block;
    padding: 10px 15px;
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.sidebar a:hover,
.sidebar a.active {
    background-color: var(--primary-color);
    color: white;
    padding-left: 20px;
}

.content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.content h2 {
    color: var(--dark-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}


table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #DDD;
}

table tbody tr:hover {
    background-color: #F5F5F5;
}

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


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
}

.modal-header h2 {
    color: var(--dark-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--error-color);
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}


.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    display: none;
    animation: slideDown 0.3s ease;
}

.alert.show {
    display: block;
}

.alert-success {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.alert-error {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.alert-warning {
    background-color: #FFF3CD;
    color: #856404;
    border: 1px solid #FFEAA7;
}

.alert-info {
    background-color: #D1ECF1;
    color: #0C5460;
    border: 1px solid #BEE5EB;
}


.toast {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    max-width: 350px;
    font-weight: 500;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    background-color: #D4EDDA;
    color: #155724;
    border-left: 4px solid #28A745;
}

.toast-warning {
    background-color: #FFF3CD;
    color: #856404;
    border-left: 4px solid #FFC107;
}

.toast-error {
    background-color: #F8D7DA;
    color: #721C24;
    border-left: 4px solid #DC3545;
}

.toast-info {
    background-color: #D1ECF1;
    color: #0C5460;
    border-left: 4px solid #17A2B8;
}


.spinner {
    display: none;
    border: 4px solid var(--light-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

.spinner.show {
    display: block;
}

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

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


@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    .navbar ul {
        flex-direction: column;
    }

    .navbar a {
        padding: 12px 20px;
    }

    .hero h2 {
        font-size: 1.8em;
    }

    .hero p {
        font-size: 1.1em;
    }

    header h1 {
        font-size: 1.8em;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 20px;
    }

    table {
        font-size: 0.9em;
    }

    table th,
    table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    header h1 {
        font-size: 1.5em;
    }

    header .tagline {
        font-size: 1em;
    }

    .hero {
        padding: 30px 20px;
    }

    .hero h2 {
        font-size: 1.5em;
    }

    .form-container {
        margin: 20px auto;
    }

    .modal-content {
        width: 95%;
    }
}

