/* Ambles Design System - Shared Components */

/* Variables (CSS Custom Properties) */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --purple-color: #8b5cf6;
    
    --text-primary: #253251;
    --text-secondary: #6482b8;
    --text-muted: #91a6c7;
    
    --bg-primary: #f6fafd;
    --bg-white: #fff;
    
    --shadow-sm: 0 1rem 3rem rgba(59, 130, 246, 0.11);
    --shadow-md: 0 2rem 3.5rem rgba(59, 130, 246, 0.13);
    --shadow-lg: 0 3rem 4rem rgba(59, 130, 246, 0.15);
    
    --border-radius-sm: 0.65rem;
    --border-radius-md: 1.15rem;
    --border-radius-lg: 1.25rem;
}

/* Base Layout */
body {
    background: var(--bg-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Dashboard Components */
.dashboard-header {
    padding-top: 2.2rem;
    padding-bottom: 1.3rem;
}

.dashboard-title {
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 0.7rem;
}

.dashboard-desc {
    color: var(--text-secondary);
    font-size: 1.06rem;
    font-weight: 500;
}

/* Stat Cards */
.stat-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.7rem 1.2rem 1.3rem 1.2rem;
    border-top: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.13s, border-color 0.13s;
    min-height: 150px;
}

.stat-card:hover {
    border-top: 4px solid var(--secondary-color);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-title {
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.3rem;
    font-size: 0.98rem;
    letter-spacing: 0.03em;
    text-align: center;
}

.stat-card .stat-value {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-card .stat-icon {
    font-size: 2.7rem;
    color: var(--secondary-color);
    margin-bottom: 0.7rem;
    opacity: 0.89;
}

/* Chart Container */
.chart-container {
    background: var(--bg-white);
    border-radius: 1.2rem;
    box-shadow: var(--shadow-sm);
    padding: 2.1rem 1.4rem;
    margin-top: 2.5rem;
}

/* Brand Buttons */
.btn-brand {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color) 80%);
    border: none;
    font-weight: 600;
    color: #fff !important;
    border-radius: 0.75rem;
    padding: 0.4rem 1.2rem;
    font-size: 0.90rem;
    letter-spacing: 0.01em;
    transition: filter 0.18s, box-shadow 0.18s;
}

.btn-brand:hover, 
.btn-brand:focus {
    filter: brightness(0.93);
    color: #fff !important;
    box-shadow: 0 2px 9px rgba(59,130,246,0.18);
}

.btn-primary {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color) 80%);
    border: none;
    font-weight: 600;
    color: #fff !important;
    box-shadow: 0 3px 14px rgba(59,130,246,0.13);
    border-radius: 0.8rem;
    padding: 0.85rem 2.3rem;
    font-size: 1.08rem;
    letter-spacing: 0.02em;
    transition: filter 0.18s, box-shadow 0.18s;
}

.btn-primary:hover {
    filter: brightness(0.88);
    color: #fff !important;
    box-shadow: 0 3px 14px rgba(59,130,246,0.17);
}

/* Action Buttons */
.action-btn-group {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    justify-content: flex-end;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-sm);
    border: 1.5px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    color: white !important;
}

.action-btn i {
    color: white !important;
    font-size: 0.9rem;
}

.action-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
    color: white !important;
    filter: brightness(1.05);
}

.action-btn:hover i {
    color: white !important;
}

.action-btn:active {
    transform: translateY(0);
}

/* Action Button Variants */
.action-btn-view {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.action-btn-view:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.action-btn-promote {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.action-btn-promote:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.action-btn-renew {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0891b2 100%);
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.25);
}

.action-btn-renew:hover {
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35);
}

.action-btn-payment {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.action-btn-payment:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.action-btn-delete {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.action-btn-delete:hover {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.action-btn-edit {
    background: linear-gradient(135deg, var(--purple-color) 0%, #7c3aed 100%);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.25);
}

.action-btn-edit:hover {
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

/* Disabled Action Buttons */
.action-btn-disabled {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    color: #9ca3af !important;
    cursor: not-allowed;
    box-shadow: 0 2px 8px rgba(229, 231, 235, 0.25);
}

.action-btn-disabled i {
    color: #9ca3af !important;
}

.action-btn-disabled:hover {
    transform: none;
    filter: none;
    box-shadow: 0 2px 8px rgba(229, 231, 235, 0.25);
    color: #9ca3af !important;
}

.action-btn-disabled:hover i {
    color: #9ca3af !important;
}

/* Action Button Tooltips */
.action-btn[title] {
    position: relative;
}

.action-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.4rem 0.7rem;
    border-radius: 0.4rem;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    animation: fadeInTooltip 0.2s ease;
}

.action-btn[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    animation: fadeInTooltip 0.2s ease;
}

@keyframes fadeInTooltip {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Action Button Link Styles */
a.action-btn:link,
a.action-btn:visited,
a.action-btn:hover,
a.action-btn:active {
    color: white !important;
    text-decoration: none !important;
}

.action-btn .bi {
    color: inherit !important;
}

/* Feature Cards */
.card-feature {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 0.7rem 2rem rgba(59,130,246,0.08);
    padding: 1.8rem 1.2rem 1.5rem 1.2rem;
    transition: transform 0.15s, box-shadow 0.15s;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--secondary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-feature:hover {
    transform: translateY(-0.33rem) scale(1.018);
    box-shadow: 0 1.5rem 2.5rem rgba(59,130,246,0.12);
}

.card-feature svg {
    width: 74px;
    height: 74px;
    color: var(--primary-color);
    opacity: 0.92;
    margin-bottom: .5rem;
    transition: color 0.17s;
}

.card-feature:hover svg {
    color: var(--secondary-color);
}

.card-feature h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.card-feature p {
    color: #7c8aa5 !important;
    line-height: 1.5;
    font-size: 1.01rem;
    margin-bottom: 0;
}

/* Hero Section */
.hero-section {
    min-height: 44vh;
    background: url('../img/hero.jpg') center center/cover no-repeat;
    position: relative;
    box-shadow: 0 3px 28px rgba(59,130,246,0.06);
    border-radius: 0 0 2.5rem 2.5rem;
}

.hero-section .overlay {
    position: absolute;
    inset: 0;
    background: rgba(192,223,255,0.8);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.hero-section h1 {
    font-size: 2.4rem;
    letter-spacing: -1px;
    text-shadow: 0 2px 12px rgba(59,130,246,0.08);
    color: var(--text-primary);
}

.hero-section p {
    font-size: 1.15rem;
    opacity: 0.97;
    max-width: 600px;
    margin: 0 auto;
}

/* Form Styles */
.contact-form .form-control {
    border-radius: 0.9rem;
    margin-bottom: 1.2rem;
    font-size: 1.06rem;
    padding: 0.7rem 1.1rem;
    border: 1.5px solid #d1ecfa;
    background: #f8fbfd;
    transition: border-color .15s;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 4px 0 #3b82f622;
    background: #f5fafd;
}

/* Background Utilities */
.bg-light {
    background: linear-gradient(98deg, #e6f7fb 0%, #f7fafd 75%);
}

.bg-custom {
    background-color: rgb(0, 163, 232);
    background: linear-gradient(to right, #00a3e8, #00a3e8 28%, #006b99);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section .container {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .card-feature {
        padding: 1.4rem 0.6rem;
    }
    
    .card-feature svg {
        width: 48px;
        height: 48px;
    }
    
    .dashboard-title {
        font-size: 1.4rem;
    }
    
    .stat-card {
        min-height: 120px;
        padding: 1.4rem 1rem;
    }
} 