/* CSS Lengkap untuk Sistem Ulang Tahun */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0c2461 0%, #1e3799 50%, #4a69bd 100%);
    color: #333;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #f6b93b;
    position: relative;
}

.header h1 {
    font-size: 2.8rem;
    color: #0c2461;
    margin-bottom: 10px;
}

.header .subtitle {
    font-size: 1.2rem;
    color: #666;
}

.back-btn {
    position: absolute;
    left: 0;
    top: 10px;
    background: #f6b93b;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.back-btn:hover {
    background: #e58e26;
    transform: translateX(-5px);
}

/* Filter Bulan */
.month-filter {
    background: linear-gradient(to right, #4a69bd, #1e3799);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    color: white;
}

.month-filter h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.month-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.month-btn {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    min-width: 120px;
    text-align: center;
}

.month-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.month-btn.active {
    background: #f6b93b;
    border-color: #f6b93b;
}

/* Admin Link */
.admin-link {
    text-align: right;
    margin-bottom: 20px;
}

.admin-btn {
    background: linear-gradient(to right, #8a2387, #f27121);
    color: white;
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.admin-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(138, 35, 135, 0.3);
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.section-header h2 {
    color: #0c2461;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.count-badge {
    background: #f6b93b;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Staff Section */
.staff-section, .messages-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Staff Grid */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.staff-card {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.staff-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.staff-photo {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.staff-age {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #f6b93b;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1rem;
}

.staff-info {
    padding: 20px;
}

.staff-info h3 {
    color: #0c2461;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.staff-details {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.staff-details p {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.staff-actions {
    display: flex;
    gap: 10px;
}

.btn-edit, .btn-delete, .btn-add {
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.btn-edit {
    background: #4a69bd;
    color: white;
}

.btn-edit:hover {
    background: #1e3799;
}

.btn-delete {
    background: #ff6b6b;
    color: white;
}

.btn-delete:hover {
    background: #ff4757;
}

.btn-add {
    background: #00b894;
    color: white;
}

.btn-add:hover {
    background: #00a085;
}

/* Messages List */
.messages-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    border-left: 5px solid #4a69bd;
    transition: all 0.3s;
}

.message-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.message-from {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0c2461;
    font-size: 1.1rem;
}

.message-date {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.message-body {
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.message-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.message-to {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.message-actions {
    display: flex;
    gap: 10px;
}

.btn-edit-small, .btn-delete-small {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-edit-small {
    background: #4a69bd;
    color: white;
}

.btn-edit-small:hover {
    background: #1e3799;
    transform: rotate(15deg);
}

.btn-delete-small {
    background: #ff6b6b;
    color: white;
}

.btn-delete-small:hover {
    background: #ff4757;
    transform: rotate(15deg);
}

/* Footer */
.footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.9rem;
}

/* Admin Dashboard */
.dashboard {
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #4a69bd, #1e3799);
    border-radius: 15px;
    padding: 25px;
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(30, 55, 153, 0.3);
}

.stat-icon {
    font-size: 3rem;
    opacity: 0.9;
}

.stat-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    opacity: 0.9;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
}

/* Admin Menu */
.admin-menu {
    margin-bottom: 40px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.menu-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    border: 2px solid transparent;
    text-align: center;
}

.menu-card:hover {
    border-color: #f6b93b;
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.menu-icon {
    font-size: 3rem;
    color: #4a69bd;
    margin-bottom: 15px;
}

.menu-card h3 {
    color: #0c2461;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.menu-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Data Table */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.data-table th {
    background: linear-gradient(to right, #4a69bd, #1e3799);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

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

.table-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4a69bd;
}

.month-badge {
    background: #f6b93b;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.actions {
    display: flex;
    gap: 10px;
}

/* Chart */
.chart-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 10px;
    height: 300px;
    align-items: end;
}

.chart-item {
    text-align: center;
}

.chart-bar {
    background: linear-gradient(to top, #4a69bd, #1e3799);
    border-radius: 5px 5px 0 0;
    position: relative;
    transition: height 0.5s ease;
}

.chart-count {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #f6b93b;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

.chart-label {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    font-weight: bold;
}

/* Form Styles */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.crud-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: bold;
    color: #0c2461;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a69bd;
    box-shadow: 0 0 0 3px rgba(74, 105, 189, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

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

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

.photo-upload {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.current-photo {
    text-align: center;
}

.current-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #4a69bd;
    margin-bottom: 10px;
}

.current-photo p {
    color: #666;
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-submit, .btn-cancel {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-submit {
    background: linear-gradient(to right, #00b894, #00a085);
    color: white;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 184, 148, 0.3);
}

.btn-cancel {
    background: #ddd;
    color: #666;
}

.btn-cancel:hover {
    background: #ccc;
    transform: translateY(-3px);
}

/* Alert */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: #ffeaea;
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
}

/* Success Messages */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}