/* === TAKALI DIGITAL - THÈME LIGHT === */

:root {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #f1f3f4;
    --text-primary: #1a1a2e;
    --text-secondary: #5f6368;
    --text-muted: #80868b;
    --border-color: #e8eaed;
    --border-hover: #dadce0;
    --accent-primary: #1a73e8;
    --accent-secondary: #34a853;
    --accent-danger: #ea4335;
    --accent-warning: #fbbc04;
    --shadow-sm: 0 1px 2px rgba(60,64,67,0.1);
    --shadow-md: 0 4px 12px rgba(60,64,67,0.15);
    --shadow-lg: 0 8px 24px rgba(60,64,67,0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Header */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand h1 {
    color: var(--accent-primary);
    font-size: 22px;
    font-weight: 800;
}

.brand span {
    color: var(--text-muted);
    font-size: 13px;
}

/* Navigation */
.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.nav a:hover, .nav a.active {
    color: var(--accent-primary);
    background: rgba(26,115,232,0.08);
}

.btn-logout {
    color: var(--accent-danger) !important;
}

.btn-logout:hover {
    background: rgba(234,67,53,0.08) !important;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-card.total::before { background: var(--accent-primary); }
.stat-card.free::before { background: var(--accent-secondary); }
.stat-card.used::before { background: var(--accent-warning); }
.stat-card.disk::before { background: var(--accent-danger); }

.stat-icon { font-size: 28px; margin-bottom: 12px; }
.stat-value { font-size: 32px; font-weight: 900; color: var(--text-primary); line-height: 1; }
.stat-label { color: var(--text-muted); font-size: 13px; margin-top: 8px; font-weight: 600; }

/* Cards */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

.client-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
}

.client-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-hover);
}

.card-id {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.status-free {
    background: rgba(52,168,83,0.1);
    color: var(--accent-secondary);
    border: 1px solid rgba(52,168,83,0.2);
}

.status-used {
    background: rgba(251,188,4,0.1);
    color: var(--accent-warning);
    border: 1px solid rgba(251,188,4,0.2);
}

.card-body {
    padding: 20px 24px;
}

.client-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.client-project {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.client-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.meta-row strong {
    color: var(--text-secondary);
    min-width: 80px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-row span {
    color: var(--text-primary);
    word-break: break-all;
    font-family: 'Inter', monospace;
    font-size: 12px;
}

/* Disk usage */
.disk-bar-container {
    background: var(--border-color);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 12px;
}

.disk-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s;
}

.disk-info {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent-primary);
    color: #fff;
}

.btn-primary:hover {
    background: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26,115,232,0.3);
}

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-view {
    background: rgba(26,115,232,0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(26,115,232,0.2);
}

.btn-view:hover {
    background: rgba(26,115,232,0.2);
}

/* Search bar */
.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.search-bar input {
    flex: 1;
    max-width: 400px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(26,115,232,0.08);
}

.search-bar button {
    padding: 14px 24px;
    background: var(--accent-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.search-bar button:hover {
    background: #1557b0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Form */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(26,115,232,0.08);
}

/* Info card */
.info-card {
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

.info-card h3 {
    color: var(--accent-primary);
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 700;
}

/* Quick actions */
.quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.quick-btn {
    flex: 1;
    min-width: 200px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.quick-btn:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-btn .emoji {
    font-size: 32px;
    margin-bottom: 8px;
}

.quick-btn .label {
    font-size: 14px;
    font-weight: 700;
}

/* Login */
.login-box {
    background: var(--bg-card);
    padding: 50px;
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.login-box .logo h1 {
    color: var(--accent-primary);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.client-card {
    animation: fadeInUp 0.5s ease backwards;
}

.client-card:nth-child(1) { animation-delay: 0.05s; }
.client-card:nth-child(2) { animation-delay: 0.1s; }
.client-card:nth-child(3) { animation-delay: 0.15s; }
.client-card:nth-child(4) { animation-delay: 0.2s; }
.client-card:nth-child(5) { animation-delay: 0.25s; }
.client-card:nth-child(6) { animation-delay: 0.3s; }

/* Section header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.badge {
    background: var(--bg-hover);
    color: var(--text-muted);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
    .clients-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .section-header { flex-direction: column; align-items: flex-start; }
    .search-bar { flex-direction: column; }
    .search-bar input { max-width: none; }
    .quick-btn { min-width: 100%; }
}
