/**
 * Admin Portal - Professional Minimal Design System
 * Matches platform landing page aesthetic
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@300;400;600&family=Lato:wght@300;400;700&display=swap');

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

body {
    font-family: 'Lato', sans-serif;
    background: white;
    color: #1a1a1a;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 400;
    color: #1a1a1a;
    letter-spacing: 1.2px;
    text-decoration: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.user-info {
    font-size: 13px;
    color: #666;
    font-weight: 300;
}

.logout-btn {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
    padding: 8px 20px;
    border: 1px solid #e5e5e5;
    border-radius: 2px;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

/* Navigation */
.nav {
    background: #fafafa;
    padding: 20px 60px;
    border-bottom: 1px solid #e5e5e5;
}

.nav a {
    text-decoration: none;
    color: #666;
    margin-right: 40px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    display: inline-block;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}

.nav a:hover {
    color: #1a1a1a;
}

.nav a.active {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

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

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 14px;
    font-weight: 300;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
}

.btn-primary {
    background: #1a1a1a;
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: white;
    color: #1a1a1a;
    border: 1px solid #e5e5e5;
}

.btn-secondary:hover {
    border-color: #1a1a1a;
}

.btn-danger {
    background: #c62828;
    color: white;
}

.btn-danger:hover {
    background: #b71c1c;
}

/* Forms */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid #e5e5e5;
    border-radius: 2px;
    font-size: 14px;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #1a1a1a;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-help {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
    font-weight: 300;
}

/* Tables */
.table-container {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 2px;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #fafafa;
    border-bottom: 1px solid #e5e5e5;
}

th {
    text-align: left;
    padding: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
}

td {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    font-weight: 300;
    color: #1a1a1a;
}

tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: #fafafa;
}

/* Cards */
.card {
    background: #fafafa;
    padding: 30px;
    border: 1px solid #e5e5e5;
    border-radius: 2px;
    margin-bottom: 30px;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 20px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.stat-card {
    background: #fafafa;
    padding: 30px;
    border: 1px solid #e5e5e5;
    border-radius: 2px;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: #1a1a1a;
}

.stat-label {
    color: #666;
    font-size: 12px;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 400;
}

.stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 300;
    color: #1a1a1a;
}

.stat-card.highlight {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.stat-card.highlight .stat-label {
    color: rgba(255,255,255,0.7);
}

.stat-card.highlight .stat-value {
    color: white;
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.status-active, .status-paid {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-trial, .status-pending {
    background: #fff3e0;
    color: #ef6c00;
}

.status-suspended, .status-failed {
    background: #ffebee;
    color: #c62828;
}

.status-draft {
    background: #f5f5f5;
    color: #757575;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 2px;
    margin-bottom: 30px;
    font-size: 14px;
    font-weight: 300;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #b3d4fc;
}

.alert-warning {
    background: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffe0b2;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 14px;
    font-weight: 300;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

/* Actions */
.actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.action-link {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: opacity 0.3s;
}

.action-link:hover {
    opacity: 0.6;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #e5e5e5;
    border-radius: 2px;
    padding: 60px 30px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #1a1a1a;
    background: #fafafa;
}

.upload-area.dragging {
    border-color: #1a1a1a;
    background: #fafafa;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* Responsive */
@media (max-width: 768px) {
    .header, .nav, .container {
        padding-left: 30px;
        padding-right: 30px;
    }

    .page-title {
        font-size: 32px;
    }

    .page-header {
        flex-direction: column;
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 12px;
    }

    .actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
