:root {
    --primary-color: #d51c48;
    --edit-color: #3abaf4;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --table-header-bg: #343a40;
    --badge-bg: #d51c48;
}

.btn-filter {
    background-color: #d51c48 !important;
    border-color: #d51c48 !important;
    border-radius: 20px;
    color: #ffffff !important;
}

.btn-filter:hover {
    background-color: #ff557d !important;
    border-color: #ff557d !important;
    color: #ffffff !important;
}

.project-dashboard {
    padding: 20px 0;
}

.project-info-section {
    margin-bottom: 30px;
}

.project-info-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.project-header-red {
    background: #d51c48;
    padding: 15px 25px;
    color: white;
}

.project-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: white;
    margin: 0;
    text-align: left;
}

.project-details {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 20px 25px;
}

.detail-group {
    flex: 1;
}

.detail-label {
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.detail-value {
    font-size: 0.95rem;
    color: #333;
    margin: 0;
    padding: 10px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    min-height: 42px;
    display: flex;
    align-items: center;
}

.divider-vertical {
    width: 1px;
    background-color: #e0e0e0;
    height: 50px;
    margin-top: 5px;
}

.action-section {
    margin-bottom: 25px;
}

.action-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.btn-filter {
    /* background: #d51c48;
    color: white; */
    border: none;
    /* padding: 8px 20px; */
    /* border-radius: 20px; */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    /* display: flex; */
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    /* gap: 0.5rem !important; */
    padding: 0.5rem 1rem !important;
    background-color: #d51c48 !important;
    border-radius: 20px  !important;
    color: #fff !important;
}

.btn-filter:hover {
    background: #b3183d;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(213, 28, 72, 0.3);
    color: white;
}

.btn-add {
    background: #d51c48;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.btn-add:hover {
    background: #b3183d;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(213, 28, 72, 0.3);
    color: white;
}

.activities-table-section {
    background: #ffffff;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.table-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 10px;
}

.status {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    display: inline-block;
    min-width: 120px;
}

.status-not-started-yet {
    background-color: #e5e7eb;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
}

.status-in-progress {
    background-color: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
    border-radius: 20px;
}

.status-testing-review {
    background-color: #fef3c7;
    color: #d97706;
    border: 1px solid #fef3c7;
    border-radius: 20px;
}

.status-done {
    background-color: #d1fae5;
    color: #047857;
    border: 1px solid #d1fae5;
    border-radius: 20px;
}

.status-revision {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fee2e2;
    border-radius: 20px;
}

.priority {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    display: inline-block;
    min-width: 80px;
}

.priority-urgent {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fee2e2;
}

.priority-high {
    background-color: #fef3c7;
    color: #d97706;
    border: 1px solid #fef3c7;
}

.priority-normal {
    background-color: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
}

.priority-low {
    background-color: #e0f2fe;
    color: #0369a1;
    border: 1px solid #e0f2fe;
}

.priority-clear {
    background-color: #e5e7eb;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.action {
    color: #d51c48;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.85rem;
}

.action:hover {
    background-color: #f8d7da;
    text-decoration: underline;
}

#addActivityForm .form-section {
    margin-bottom: 20px;
}

#addActivityForm .section-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    font-size: 1rem;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 6px;
}

#addActivityForm .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

#addActivityForm .form-group {
    margin-bottom: 0;
}

#addActivityForm .form-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    font-size: 0.85rem;
    display: block;
}

.custom-textarea {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 10px;
    font-size: 0.9rem;
    resize: vertical;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    min-height: 80px;
}

.custom-textarea:focus {
    border-color: #d51c48;
    background-color: white;
    box-shadow: 0 0 0 0.1rem rgba(213, 28, 72, 0.1);
}

.custom-input,
.custom-select {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    height: 40px;
}

.custom-input:focus,
.custom-select:focus {
    border-color: #d51c48;
    background-color: white;
    box-shadow: 0 0 0 0.1rem rgba(213, 28, 72, 0.1);
}

.divider-horizontal {
    height: 1px;
    background: #eaeaea;
    margin: 20px 0;
    border: none;
}

.btn-save {
    background: #d51c48;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 80px;
    font-size: 0.85rem;
}

.btn-save:hover {
    background: #b3183d;
    color: white;
    transform: translateY(-1px);
}

/* File Upload Styles */
.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.file-upload-area:hover {
    border-color: #D51C48;
    background-color: #fff;
}

.file-upload-area.dragover {
    border-color: #D51C48;
    background-color: rgba(213, 28, 72, 0.05);
}

@media (max-width: 768px) {
    .project-details {
        flex-direction: column;
        gap: 15px;
    }

    .divider-vertical {
        display: none;
    }

    .action-container {
        justify-content: flex-start;
        flex-direction: row;
        gap: 8px;
    }

    .table-responsive {
        border: 1px solid #dee2e6;
        border-radius: 6px;
    }

    .table th,
    .table td {
        padding: 8px 4px;
        font-size: 0.85rem;
    }

    .status,
    .priority {
        min-width: auto;
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    .project-name {
        font-size: 1.3rem;
    }

    .detail-label {
        font-size: 0.95rem;
    }

    .project-header-red {
        padding: 12px 15px;
    }

    .project-details {
        padding: 15px;
    }

    .modal-lg {
        margin: 20px;
        max-width: calc(100% - 40px);
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .modal-body {
        padding: 15px;
    }

    .modal-header {
        padding: 12px 15px;
    }

    .modal-footer {
        padding: 12px 15px;
        flex-direction: column;
    }

    .btn-cancel,
    .btn-save {
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 576px) {
    .project-info-card {
        border-radius: 6px;
    }

    .activities-table-section {
        padding: 15px;
    }

    .table-title {
        font-size: 1.1rem;
    }

    .project-header-red {
        padding: 10px 12px;
    }

    .project-details {
        padding: 12px;
    }

    .modal-body {
        padding: 12px;
    }

    .modal-header {
        padding: 10px 12px;
    }

    .modal-footer {
        padding: 10px 12px;
    }

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

    .action-container {
        flex-direction: column;
        align-items: flex-end;
    }
}

.project-info-card,
.activities-table-section,
.action-container {
    animation: fadeInUp 0.3s ease-out;
}

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

.table tbody tr {
    transition: all 0.2s ease;
}

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

.custom-textarea::placeholder,
.custom-input::placeholder {
    color: #6c757d;
    opacity: 0.7;
    font-size: 0.85rem;
}

.custom-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23555' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    padding-right: 30px;
}

/* Fix untuk tombol modal agar tidak berubah warna */
.btn:focus,
.btn:active {
    outline: none !important;
    box-shadow: none !important;
}

.btn-filter:focus,
.btn-filter:active,
.btn-add:focus,
.btn-add:active {
    background: #d51c48 !important;
    color: rgb(245, 122, 122) !important;
    border: none !important;
    transform: none;
}
