/*
 * SalonPro X - Main Styles
 * Layout, Custom Components, Page Specific Styles
 */

/* ===== Dashboard Widgets ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.chart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

@media (max-width: 992px) {
    .chart-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Appointment Cards ===== */
.appointment-card {
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    border: 1px solid var(--border-light);
}
.appointment-card:hover {
    border-color: var(--border-gold);
    background: var(--bg-hover);
}
.appointment-info h6 {
    margin: 0 0 2px;
    font-size: 14px;
}
.appointment-info p {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

.appointment-status {
    font-size: 11px;
}

/* ===== Customer Profile Header ===== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 3px solid var(--border-gold);
    flex-shrink: 0;
}
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-primary);
    color: #000;
    font-size: 32px;
    font-weight: 700;
}

.profile-info h4 {
    margin: 0 0 4px;
}
.profile-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

/* ===== Timeline ===== */
.timeline {
    position: relative;
    padding-left: 24px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}
.timeline-item {
    position: relative;
    padding-bottom: 20px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold-primary);
    border: 2px solid var(--bg-primary);
}
.timeline-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* ===== Photo Grid ===== */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}
.photo-grid-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform var(--transition-fast);
}
.photo-grid-item:hover {
    transform: scale(1.05);
}
.photo-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Stat Tiles ===== */
.stat-tile {
    text-align: center;
    padding: 16px;
}
.stat-tile-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold-primary);
}
.stat-tile-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== Kanban / Reception Board ===== */
.reception-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}
.reception-column {
    min-height: 400px;
}
.reception-column h6 {
    padding: 12px;
    margin: 0;
    border-bottom: 1px solid var(--border-light);
}

/* ===== Print Styles ===== */
@media print {
    .sidebar, .top-navbar, .app-footer, .table-actions { display: none !important; }
    .main-wrapper { margin-left: 0 !important; }
    .page-content { padding: 0; }
    .glass-card { box-shadow: none !important; border: 1px solid #ddd !important; }
}

/* ===== Utility Classes ===== */
.cursor-pointer { cursor: pointer; }
.min-w-0 { min-width: 0; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
