/**
 * IBVTE Unified Theme CSS
 * Based on design-reference snapshots
 */

:root {
    --primary-color: #5a2d8c;
    --primary-dark: #3d1e5e;
    --primary-light: #7c4db8;
    --secondary-color: #9b59b6;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --gradient-primary: linear-gradient(135deg, #5a2d8c 0%, #7c4db8 100%);
    --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #4a6278 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.2);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* Cards */
.card-ibvte {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.card-header-ibvte {
    background: var(--gradient-primary);
    color: white;
    padding: 20px 25px;
    border: none;
}

.card-header-ibvte h5 {
    margin: 0;
    font-weight: 600;
}

/* Buttons */
.btn-ibvte {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius);
    padding: 10px 24px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(90, 45, 140, 0.3);
}

.btn-ibvte:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(90, 45, 140, 0.4);
    color: white;
}

.btn-ibvte-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--radius);
    padding: 8px 22px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* Forms */
.form-control-ibvte {
    border: 2px solid #e0e6ed;
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control-ibvte:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(90, 45, 140, 0.1);
}

/* Tables */
.table-ibvte {
    border-collapse: separate;
    border-spacing: 0;
}

.table-ibvte th {
    background: #f8f9fa;
    color: var(--dark-color);
    font-weight: 600;
    padding: 14px 16px;
    border: none;
    border-bottom: 2px solid #e0e6ed;
}

.table-ibvte td {
    padding: 14px 16px;
    border: none;
    border-bottom: 1px solid #f0f2f5;
    vertical-align: middle;
}

.table-ibvte tr:hover {
    background: #fafbfc;
}

/* Stats Cards */
.stat-card-ibvte {
    background: white;
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card-ibvte::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
}

.stat-card-ibvte:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon-ibvte {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(90, 45, 140, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Sidebar */
.sidebar-ibvte {
    background: white;
    min-height: 100vh;
    box-shadow: var(--shadow);
    padding: 20px 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(90, 45, 140, 0.05);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-link i {
    width: 24px;
    margin-right: 12px;
}

/* Page Header */
.page-header-ibvte {
    background: var(--gradient-primary);
    color: white;
    padding: 30px 0;
    margin-bottom: 30px;
}

/* Badges */
.badge-ibvte {
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease forwards;
}

/* Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Responsive */
@media (max-width: 768px) {
    .card-ibvte {
        margin-bottom: 15px;
    }
    
    .sidebar-ibvte {
        min-height: auto;
    }
}
