﻿/* css/admin.css - Admin Styles */

/* ==================== Login Page ==================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--white) 50%, var(--gray-50) 100%);
    padding: 1rem;
}

.login-container {
    width: 100%;
    max-width: 440px;
    position: relative;
}

.login-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-2xl);
    position: relative;
    z-index: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.login-header .logo-img {
    width: 64px;
    height: auto;
}

.login-header .logo-text {
    text-align: center;
    font-size: 1rem;
    line-height: 1.1;
    max-width: 260px;
}

.login-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.login-form .form-group {
    margin-bottom: 1.25rem;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

.input-icon-wrapper input {
    padding-left: 3rem;
    padding-right: 3rem;
}

/* Input with inline button (e.g., Image URL + Get URL) */
.input-with-button {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.input-with-button input[type="url"],
.input-with-button input[type="text"] {
    flex: 1 1 auto;
}

.btn-sm {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    border-radius: 10px;
}

.get-url-btn {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.65rem 1rem;
    min-width: 120px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(45, 90, 39, 0.08);
    transition: transform var(--transition-base), background var(--transition-base), box-shadow var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

.get-url-btn:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(45, 90, 39, 0.16);
}

@media (max-width: 640px) {
    .input-with-button {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    .get-url-btn {
        width: 100%;
    }
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.25rem;
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.password-toggle:hover {
    color: var(--gray-600);
}

.form-error {
    background: var(--accent-light);
    color: #c62828;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: none;
}

.form-error.show {
    display: block;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn.loading .btn-text {
    opacity: 0;
}

.btn.loading .btn-loader {
    display: block;
    position: absolute;
}

.login-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: var(--primary);
}

.login-decoration {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.deco-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -200px;
}

.deco-2 {
    width: 400px;
    height: 400px;
    background: var(--primary-light);
    bottom: -100px;
    left: -100px;
}

.deco-3 {
    width: 200px;
    height: 200px;
    background: var(--primary-lighter);
    top: 50%;
    left: 10%;
}

/* ==================== Admin Layout ==================== */
.admin-page {
    display: flex;
    min-height: 100vh;
    background: var(--gray-50);
}

/* ==================== Sidebar ==================== */
.sidebar {
    width: 260px;
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform var(--transition-base);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sidebar-header {
    padding: 1.5rem 1rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: center;
    text-align: center;
}

.sidebar-header .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-header .logo-img {
    width: 68px;
    height: auto;
}

.sidebar-header .logo-text {
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--text-primary);
    max-width: 140px;
    white-space: normal;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.sidebar-group-divider {
    height: 1px;
    margin: 0.5rem 0;
    background: var(--gray-200);
    width: calc(100% - 3rem);
    margin-left: 1.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform var(--transition-fast);
}

.nav-item:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.nav-item.active {
    background: var(--primary-bg);
    color: var(--primary);
}

.nav-item.active::before {
    transform: scaleY(1);
}

.sidebar-footer {
    padding: 1rem 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.logout-btn:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 200;
    padding: 0.75rem;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
}

/* ==================== Main Content ==================== */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.admin-section .section-header {
    margin-bottom: 2rem;
}

.admin-section .section-header h1 {
    font-size: 1.75rem;
}

.admin-section .section-header p {
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ==================== Stats Grid ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.total {
    background: var(--primary-bg);
    color: var(--primary);
}

.stat-icon.groom {
    background: #e3f2fd;
    color: #1976d2;
}

.stat-icon.bride {
    background: #fce4ec;
    color: #c2185b;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-title {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ==================== Form Card ==================== */
.form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    max-width: 600px;
}

.form-card .form-group {
    margin-bottom: 1.25rem;
}

.image-preview-container {
    margin-bottom: 1.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--gray-100);
    aspect-ratio: 1585 / 2245;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-preview-container img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-container.has-image img {
    display: block;
}

.preview-placeholder {
    color: var(--gray-400);
    font-size: 0.875rem;
    text-align: center;
    padding: 1rem;
}

.image-preview-container.has-image .preview-placeholder {
    display: none;
}

/* ==================== Profiles Table ==================== */
.profiles-table-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    box-shadow: var(--shadow-card);
}

.profiles-table-container::-webkit-scrollbar {
    height: 8px;
}

.profiles-table-container::-webkit-scrollbar-thumb {
    background: rgba(45, 90, 39, 0.2);
    border-radius: 999px;
}

.table-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem;
    color: var(--text-muted);
}

.loader.small {
    width: 32px;
    height: 32px;
}

.loader.small .loader-ring:nth-child(2),
.loader.small .loader-ring:nth-child(3) {
    display: none;
}

.profiles-table {
    width: 100%;
    /* increase minimum table width to accommodate extra columns and avoid squeezing */
    min-width: 980px;
    border-collapse: collapse;
    table-layout: fixed;
}

.profiles-table th,
.profiles-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
    word-wrap: break-word;
}

.profiles-table th {
    background: var(--gray-50);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.profiles-table th:nth-child(1),
.profiles-table td:nth-child(1) {
    width: 100px;
}

.profiles-table th:nth-child(2),
.profiles-table td:nth-child(2) {
    width: 180px;
}

.profiles-table th:nth-child(3),
.profiles-table td:nth-child(3) {
    width: 140px;
}

.profiles-table th:nth-child(4),
.profiles-table td:nth-child(4) {
    width: 120px;
}

.profiles-table td:nth-child(1) {
    text-align: center;
}

.profiles-table td:nth-child(4) {
    text-align: center;
    transition: background var(--transition-fast);
}

.profiles-table tbody tr:hover {
    background: var(--gray-50);
}

.table-image {
    width: 80px;
    height: 100px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--gray-100);
}

.table-gender {
    display: inline-flex;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.table-gender.groom {
    background: #e3f2fd;
    color: #1976d2;
}

.table-gender.bride {
    background: #fce4ec;
    color: #c2185b;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.action-btn.edit {
    background: var(--primary-bg);
    color: var(--primary);
}

.action-btn.edit:hover {
    background: var(--primary);
    color: var(--white);
}

.action-btn.delete {
    background: var(--accent-light);
    color: var(--accent);
}

.action-btn.delete:hover {
    background: var(--accent);
    color: var(--white);
}

.table-empty {
    padding: 3rem;
    text-align: center;
    color: var(--text-muted);
}

/* ==================== Tamil Live Builder ==================== */
.live-builder {
    display: grid;
    /* Wider preview column so the exported image doesn't crop on the right */
    grid-template-columns: minmax(360px, 1fr) minmax(560px, 2.2fr);
    gap: 1.5rem;
    align-items: flex-start;
}

.live-form-panel .form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    background: #fff;
    outline: none;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.grid {
    display: grid;
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gap-2 {
    gap: 0.5rem;
}

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

.p-2 {
    padding: 0.5rem;
}

.text-xs {
    font-size: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.gender-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Fixed-size horoscope boxes (rasi / amsam) */
.live-grid textarea.rasi-box,
.live-grid textarea.amsam-box {
    width: 100%;
    height: 64px;
    min-height: 64px;
    max-height: 64px;
    resize: none;
    overflow: hidden;
    white-space: pre-wrap;
    word-wrap: break-word;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.06);
    background: #fff;
    padding: 0.6rem;
    text-align: center;
    line-height: 1.1;
    font-size: 16px;
    font-family: inherit;
}

.live-grid textarea.rasi-box:focus,
.live-grid textarea.amsam-box:focus {
    outline: 2px solid rgba(59,130,246,0.12);
    outline-offset: 0;
}

.gender-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.gender-option:hover {
    border-color: #9ca3af;
    background: #f8fafc;
}

.gender-option input[type="radio"] {
    display: none;
}

.gender-option span {
    font-weight: 500;
}

.gender-option.selected,
.gender-option input[type="radio"]:checked + span {
    color: var(--white);
}

.live-preview-panel {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-card);
}

.live-preview-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://i.postimg.cc/3xbHJcdt/Screenshot-2026-05-26-180611-Photoroom.png') center/contain no-repeat;
    background-size: 65% auto;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.live-preview-panel > * {
    position: relative;
    z-index: 1;
}

.biodata-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: none;
    background: #fff;
    overflow: hidden;
    font-family: 'Noto Sans Tamil', sans-serif;
}

.biodata-header {
    text-align: center;
    padding: 0.8rem 1rem;
    border-bottom: none;
    background: linear-gradient(180deg, #f8f8f8 0%, #ffffff 100%);
}

.main-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.sub-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.5rem 0 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gender-title {
    font-size: 1.25rem;
    margin: 1.25rem 0 0;
    color: var(--text-primary);
    font-weight: 700;
}

.address-line,
.phone-number {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0.25rem 0;
}

.header-divider {
    display: none;
}

.biodata-main {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.photo-section {
    width: 260px;
    max-width: 260px;
    min-width: 260px;
    flex-shrink: 0;
    border-right: none;
    padding-right: 1rem;
}

.profile-id {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1rem;
}

.profile-id span {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.2rem;
    letter-spacing: 0.02em;
}

.photo-frame {
    width: 100%;
    aspect-ratio: 3 / 4;
    min-height: 320px;
    border: none;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f5f5;
}

/* Show uploaded profile photos in black & white */
.profile-image {
    filter: grayscale(100%);
    transition: filter 240ms ease-in-out;
}

@media (max-width: 980px) {
    .biodata-main {
        flex-direction: column;
        align-items: center;
    }

    .photo-section {
        width: 100%;
        max-width: 320px;
        min-width: auto;
        padding-right: 0;
    }

    .details-section {
        width: 100%;
        min-width: auto;
    }
}

.photo-placeholder {
    color: #888;
    font-size: 0.9rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
}

.details-section {
    flex: 1;
    min-width: 220px;
    padding-right: 1rem;
}

.detail-row {
    display: flex;
    padding: 0.5rem 0;
    border-bottom: none;
}

.detail-label {
    width: 180px;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-primary);
    flex-shrink: 0;
}

.detail-value {
    padding-left: 0.75rem;
    font-size: 0.95rem;
    color: #000;
    font-weight: 400;
    flex: 1;
}

.detail-value::before {
    content: ':';
    margin-right: 0.5rem;
    color: var(--gray-500);
}

.horoscope-section {
    padding: 1rem;
    border-top: none;
}

.horoscope-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.horoscope-charts {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.chart-container {
    width: 100%;
    max-width: 260px;
}

.chart-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-align: center;
}

.rasi-chart,
.amsam-chart {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 2px solid var(--text-primary);
    background: #fff;
}

.chart-cell {
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Chart textarea to fill cell and be fixed-size */
.chart-cell textarea.chart-box {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    resize: none;
    border: none;
    padding: 0.35rem;
    text-align: center;
    background: transparent;
    font-size: 16px;
    line-height: 1.1;
    overflow: hidden;
    font-family: inherit;
}

.chart-cell textarea.chart-box:focus {
    outline: none;
}

.chart-cell.center {
    grid-column: 2 / 4;
    grid-row: 2 / 4;
    background: #fff7ed;
    font-weight: 700;
    font-size: 1rem;
    color: #b45309;
    border: 2px solid #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-cell input {
    width: 100%;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 0.85rem;
    background: transparent;
    padding: 0.35rem;
}

.chart-cell input:focus {
    outline: none;
    background: #fafafa;
}

.final-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-top: none;
    background: #fafafa;
}

.final-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-align: center;
}

.final-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.final-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

/* ==================== Edit Modal ==================== */
.edit-modal {
    max-width: 480px;
}

.edit-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.edit-modal .modal-header h2 {
    font-size: 1.25rem;
}

.edit-modal form {
    padding: 1.5rem;
}

.edit-modal .modal-actions {
    margin-top: 1.5rem;
}

/* ==================== Delete Modal ==================== */
.delete-modal {
    max-width: 400px;
    padding: 2rem;
    text-align: center;
}

.delete-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.delete-modal h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.delete-modal p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ==================== Kulam Modal ==================== */
.kulam-modal {
    max-width: 500px;
}

.kulam-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.kulam-modal .modal-header h2 {
    font-size: 1.25rem;
    margin: 0;
}

.kulam-modal form {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.kulam-modal .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.kulam-modal .form-label {
    font-weight: 500;
    font-size: 0.95rem;
}

.kulam-modal .form-input {
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.kulam-modal .modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.kulam-modal .modal-actions .btn {
    flex: 1;
    max-width: 200px;
}

/* ==================== Admin Responsive ==================== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
    
    .admin-section .section-header h1 {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .profiles-table {
        display: block;
        overflow-x: auto;
    }
    
    .form-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}









/* Biodata Container */
.biodata-container {
    position: relative;
    overflow: hidden;
    background: #fff;
}

/* Large Watermark Logo */
.biodata-container::before {
    content: "";
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 700px;   /* Bigger watermark */
    height: 700px;

    background-image: url('https://i.postimg.cc/C1rzbq6p/Screenshot-2026-05-26-180611-Photoroom.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    opacity: 0.1;   /* 10% opacity */

    z-index: 0;
    pointer-events: none;
}

/* Keep all content above watermark */
.biodata-container * {
    position: relative;
    z-index: 1;
}