/*********************
* Login
**********************/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;700&display=swap');

:root {
    --primary-color: #1e3a8a;
    /* Deep Navy Blue */
    --primary-dark: #172554;
    --accent-color: #f59e0b;
    /* Gold */
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

.login-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Section - Form */
.login-form-section {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 60px;
    background: var(--white);
    position: relative;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.login-header {
    margin-bottom: 40px;
    text-align: center;
}

.logo-container {
    margin-bottom: 24px;
}

.logo-img {
    width: 80px;
    height: auto;
    margin-bottom: 16px;
}

.app-title {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.app-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Form Styling */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.form-control-modern {
    width: 100%;
    padding: 14px 16px;
    padding-left: 44px;
    /* Space for icon */
    font-size: 15px;
    color: var(--text-dark);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    background: var(--white);
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    transition: color 0.3s ease;
}

.form-control-modern:focus+.input-icon {
    color: var(--primary-color);
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.btn-login:disabled,
.btn-login.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Alert */
.alert-message {
    padding: 12px 16px;
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    color: #991b1b;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 24px;
    display: none;
    text-align: center;
}

/* Footer */
.login-footer {
    margin-top: 24px;
    padding-top: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px 10px 10px;
    background-color: var(--bg-light);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    group: back-link;
}

.icon-circle {
    width: 32px;
    height: 32px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.back-link span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.back-link:hover {
    background-color: var(--white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--border-color);
    transform: translateY(-2px);
}

.back-link:hover .icon-circle {
    background-color: var(--primary-color);
    color: var(--white);
    transform: rotate(-45deg);
}

.back-link:hover span {
    color: var(--primary-color);
}

.copyright {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    opacity: 0.8;
}

.login-footer a:not(.back-link) {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Right Section - Image */
.login-image-section {
    flex: 1;
    position: relative;
    background-image: url('/assets/image/bg/Pessel.jpg');
    /* Ensure this path is correct */
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.login-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(30, 58, 138, 0.6) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px;
}

.image-content {
    color: var(--white);
    max-width: 600px;
    animation: fadeIn 1s ease-out;
}

.image-content h2 {
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.image-content p {
    font-size: 18px;
    opacity: 0.9;
    font-weight: 300;
}

.accent-line {
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin-bottom: 24px;
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
    }

    .login-form-section {
        flex: 1;
        width: 100%;
        padding: 40px 24px;
        order: 2;
    }

    .login-image-section {
        height: 250px;
        flex: none;
        order: 1;
    }

    .image-content {
        display: none;
        /* Hide text on small screens if overly crowded */
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/*********************
* End Login
**********************/

/*********************
* Beranda Admin
**********************/
/* ===== GLOBAL VARIABLES ===== */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #059669;
    --accent-color: #f59e0b;
    --danger-color: #dc2626;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;

    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--gray-50) 0%, #e0f2fe 100%);
    color: var(--gray-700);
    line-height: 1.6;
    min-height: 100vh;
}

/* Container dengan padding yang lebih compact */
.main-container {
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header Section - Compact dan Modern */
.dashboard-header {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.welcome-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.welcome-subtitle {
    color: var(--gray-500);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.admin-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--success-color);
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Stats Cards - Compact dan Modern */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* paksa 4 kolom */
    gap: 1rem;
    margin-bottom: 1.5rem;
}


.stat-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
}

.stat-card.news::before {
    background: var(--primary-color);
}

.stat-card.pages::before {
    background: var(--success-color);
}

.stat-card.agenda::before {
    background: var(--warning-color);
}

.stat-card.users::before {
    background: var(--danger-color);
}

.stat-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-trend {
    font-size: 0.8rem;
    color: var(--success-color);
    font-weight: 600;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--white);
}

.stat-icon.news {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.stat-icon.pages {
    background: linear-gradient(135deg, var(--success-color), #059669);
}

.stat-icon.agenda {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
}

.stat-icon.users {
    background: linear-gradient(135deg, var(--danger-color), #b91c1c);
}

/* Content Grid - 2 Column Layout */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.chart-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.chart-header {
    margin-bottom: 1.5rem;
}

.chart-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.chart-subtitle {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* Satisfaction Bars */
.satisfaction-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.satisfaction-label {
    min-width: 90px;
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 500;
}

.satisfaction-bar-container {
    flex: 1;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    margin: 0 1rem;
    overflow: hidden;
}

.satisfaction-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
    background: linear-gradient(90deg, var(--success-color), #34d399);
}

.satisfaction-bar.info {
    background: linear-gradient(90deg, var(--info-color), #38bdf8);
}

.satisfaction-bar.warning {
    background: linear-gradient(90deg, var(--warning-color), #fbbf24);
}

.satisfaction-bar.danger {
    background: linear-gradient(90deg, var(--danger-color), #f87171);
}

.satisfaction-value {
    min-width: 35px;
    text-align: right;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-700);
}

/* Quick Write Form - Compact */
.quick-write-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.quick-write-header {
    background: linear-gradient(135deg, var(--success-color), #059669);
    padding: 1rem 1.5rem;
    color: var(--white);
}

.quick-write-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.quick-write-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

.btn-publish {
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background-color: var(--success-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-publish::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%);
    transition: width 0.6s ease;
    z-index: -1;
}

.btn-publish:hover::before,
.btn-publish:focus::before {
    width: 100%;
}

.btn-publish:hover,
.btn-publish:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-publish i {
    transition: transform 0.3s ease;
}

.btn-publish:hover i {
    transform: translateX(4px);
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 280px;
}

/* Time Display */
.time-display {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--gray-500);
    text-align: right;
    margin-bottom: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.75rem;
    }

    .dashboard-header {
        padding: 1rem 1.5rem;
    }

    .welcome-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .satisfaction-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .satisfaction-bar-container {
        margin: 0;
    }
}


/*********************
* End Beranda Admin
**********************/