/* assets/css/style.css - Global Styles */

/* Base Styles */
:root {
    --primary-color: #6748FF;
    --sidebar-width: 250px;
    --mobile-breakpoint: 992px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8fafc;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Layout Structure */
.main-content {
    padding: 20px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

@media (min-width: 992px) {
    .main-content {
        margin-left: var(--sidebar-width);
    }
}

/* Cards */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    border: none;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    border-bottom: none;
}

.card-body {
    padding: 20px;
}

/* Forms */
.form-control,
.form-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(103, 72, 255, 0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #523bfa;
    transform: translateY(-1px);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background-color: var(--primary-color);
    color: white;
    padding: 12px;
    text-align: left;
}

.table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

/* Utility Classes */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .main-content {
        padding: 15px;
    }
    
    .card {
        border-radius: 8px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .main-content {
        padding: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .table th,
    .table td {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}

/* Prevent zoom on mobile inputs */
input,
select,
textarea {
    font-size: 16px !important;
}

/* Hide any duplicate toggle buttons */
.toggle-sidebar {
    display: none !important;
}