/* =========================================================
   PENGATURAN TAMPILAN (SETTINGS CSS)
   File: assets/css/perusahaan-settings.css
========================================================= */

.settings-container {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.settings-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #102b52, #173b6d);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(16,43,82,0.25);
}

.settings-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.settings-header p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* CARDS */
.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-card);
}

.settings-card-header {
    margin-bottom: 22px;
}

.settings-card-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.settings-card-header p {
    font-size: 12.5px;
    color: var(--text-secondary);
}

/* THEME GRID */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.theme-card {
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    background: var(--bg-subtle);
    cursor: pointer;
    transition: all 0.22s ease;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.theme-card:hover {
    transform: translateY(-3px);
    border-color: #3b82f6;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.theme-card.active {
    border-color: #2563eb;
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12), 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* PREVIEW BOXES */
.theme-preview {
    height: 110px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.08);
}

.prev-topbar {
    height: 24px;
    width: 100%;
}

.prev-body {
    flex: 1;
    display: flex;
    gap: 6px;
    padding: 6px;
}

.prev-sidebar {
    width: 38px;
    border-radius: 4px;
}

.prev-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.prev-card {
    flex: 1;
    border-radius: 4px;
}

/* THEME COLOR PREVIEW VARIANTS */
.theme-preview-default .prev-topbar { background: linear-gradient(135deg, #0b1d3a, #173b6d); }
.theme-preview-default .prev-sidebar { background: #0f0c29; }
.theme-preview-default .prev-body { background: #f0ecfc; }
.theme-preview-default .prev-card { background: #ffffff; border: 1px solid #e5d9ff; }

.theme-preview-light .prev-topbar { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.theme-preview-light .prev-sidebar { background: #1e293b; }
.theme-preview-light .prev-body { background: #f8fafc; }
.theme-preview-light .prev-card { background: #ffffff; border: 1px solid #e2e8f0; }

.theme-preview-dark .prev-topbar { background: linear-gradient(135deg, #090d16, #0f172a); }
.theme-preview-dark .prev-sidebar { background: #0f172a; }
.theme-preview-dark .prev-body { background: #0b1329; }
.theme-preview-dark .prev-card { background: #132247; border: 1px solid rgba(255,255,255,0.08); }

/* THEME INFO */
.theme-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.theme-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.badge-active {
    display: none;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
}

.theme-card.active .badge-active {
    display: inline-block;
}

.theme-info p {
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.35;
}

/* FONT SIZE SELECTOR */
.font-size-selector {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.font-btn {
    flex: 1;
    min-width: 140px;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg-subtle);
    color: var(--text-primary);
    font-family: inherit;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.font-btn:hover {
    border-color: #3b82f6;
    background: var(--bg-card);
}

.font-btn.active {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.font-btn-text {
    font-weight: 800;
    line-height: 1;
}

/* FONT PREVIEW BOX */
.font-preview-box {
    background: var(--bg-subtle);
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 18px 22px;
}

.font-preview-box label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.preview-sample-text {
    font-size: 1em;
    color: var(--text-primary);
    line-height: 1.6;
}

/* TOAST */
.settings-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #102b52;
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.settings-toast.show {
    opacity: 1;
    transform: translateY(0);
}
