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

:root {
    --primary-red: #9E1B1D;
    --accent-beige: #D9C8B4;
    --dark-text: #333333;
    --light-text: #666666;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-gray);
    color: var(--dark-text);
}

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

.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 20px 0;
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-red);
}

.logout-btn {
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background-color: #7a1517;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-form {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.login-form h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-red);
    margin-bottom: 10px;
    font-size: 28px;
}

.login-form p {
    color: var(--light-text);
    margin-bottom: 30px;
    font-size: 14px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark-text);
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-red);
}

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

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    background-color: #7a1517;
}

.message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.message.error {
    background-color: #ffe6e6;
    color: var(--primary-red);
    border-left: 4px solid var(--primary-red);
}

.message.success {
    background-color: #e8f5e9;
    color: #388e3c;
    border-left: 4px solid #388e3c;
}

.dashboard {
    display: none;
}

.dashboard.active {
    display: block;
}

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

.dashboard-section {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    color: var(--primary-red);
    margin-bottom: 25px;
    font-weight: 600;
}

.list-section {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th {
    background-color: var(--light-gray);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
}

td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.delete-btn {
    background-color: #d32f2f;
    color: var(--white);
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.delete-btn:hover {
    background-color: #b71c1c;
}

.project-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

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

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

    table {
        font-size: 12px;
    }

    th, td {
        padding: 8px;
    }
}

/* Modal Popup Styles */
.modal-overlay {
    display: none; /* Keeps it hidden until clicked */
    position: fixed; /* Forces it to float */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4); /* Transparent dark/grey overlay */
    backdrop-filter: blur(5px); /* Creates the blurred background effect */
    z-index: 9999; /* Guarantees it stays on top of everything */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--light-text);
    transition: color 0.2s;
}

.close-modal-btn:hover {
    color: var(--primary-red);
}

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