/**
 * FBS Digital Store - Custom Styles
 * Modern SaaS + WhatsApp-Friendly UX
 */

:root {
    --primary-pink: #FF1493;
    --primary-green: #00ff88;
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* Navigation */
.navbar {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-pink), #ff006e);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 20, 147, 0.3);
}

.btn-success {
    background: var(--primary-green);
    color: #000;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-pink);
    color: var(--primary-pink);
}

.btn-outline:hover {
    background: var(--primary-pink);
    color: white;
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 20, 147, 0.2);
}

.card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

/* Product Cards */
.product-card {
    background: linear-gradient(135deg, var(--card-bg), rgba(255, 20, 147, 0.05));
    border: 1px solid rgba(255, 20, 147, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: var(--primary-pink);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 20, 147, 0.3);
}

/* Duration Pills */
.duration-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.duration-pill:hover,
.duration-pill.active {
    background: var(--primary-pink);
    border-color: var(--primary-pink);
    color: white;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-success {
    background: var(--primary-green);
    color: #000;
}

.badge-warning {
    background: #ffc107;
    color: #000;
}

.badge-danger {
    background: #dc3545;
    color: white;
}

.badge-info {
    background: #17a2b8;
    color: white;
}

.badge-secondary {
    background: #6c757d;
    color: white;
}

.badge-primary {
    background: var(--primary-pink);
    color: white;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(255, 20, 147, 0.1);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a0a2e, #16213e, #0f3460);
    background-image: 
        radial-gradient(at 40% 20%, rgba(255, 20, 147, 0.3) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(0, 255, 136, 0.2) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(255, 20, 147, 0.2) 0px, transparent 50%);
    padding: 4rem 0;
    border-radius: 0 0 2rem 2rem;
}

/* Stat Cards */
.stat-card {
    background: linear-gradient(135deg, var(--card-bg), rgba(255, 20, 147, 0.1));
    border-left: 4px solid var(--primary-pink);
    padding: 1.5rem;
    border-radius: 0.75rem;
}

/* Subscription Card */
.subscription-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.subscription-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-pink), var(--primary-green));
}

/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background: rgba(255, 255, 255, 0.05);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Sidebar */
.sidebar {
    background-color: var(--card-bg);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    padding-top: 70px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255, 20, 147, 0.1);
    color: var(--primary-pink);
    border-left: 3px solid var(--primary-pink);
}

/* Main Content with Sidebar */
.main-content {
    margin-left: 250px;
    padding: 2rem;
    padding-top: 90px;
}

/* Chat */
.chat-container {
    background: var(--card-bg);
    border-radius: 1rem;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.chat-message {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    max-width: 70%;
}

.chat-message.customer {
    background: rgba(255, 20, 147, 0.2);
    margin-left: auto;
}

.chat-message.support {
    background: rgba(0, 255, 136, 0.2);
}

.chat-input {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25D366;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(0, 255, 136, 0.2);
    border-left: 4px solid var(--primary-green);
    color: var(--primary-green);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.2);
    border-left: 4px solid #dc3545;
    color: #ff6b6b;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.2);
    border-left: 4px solid #ffc107;
    color: #ffc107;
}

.alert-info {
    background: rgba(23, 162, 184, 0.2);
    border-left: 4px solid #17a2b8;
    color: #17a2b8;
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--primary-pink);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .hero {
        padding: 2rem 0;
    }
}

/* Utility Classes */
.text-primary { color: var(--primary-pink); }
.text-success { color: var(--primary-green); }
.text-muted { color: var(--text-secondary); }
.bg-primary { background-color: var(--primary-pink); }
.bg-success { background-color: var(--primary-green); }
.bg-dark { background-color: var(--dark-bg); }
.bg-card { background-color: var(--card-bg); }
