/* Custom Styles for AIYYAN GYM */

/* Dashboard Cards */
.card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Stat Cards */
.bg-primary { background-color: #667eea !important; }
.bg-success { background-color: #11998e !important; }
.bg-info { background-color: #00b4d8 !important; }
.bg-warning { background-color: #ffc107 !important; }
.bg-danger { background-color: #e94560 !important; }

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.85);
    transition: color 0.2s;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
}

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

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #6c757d;
}

.table-hover tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

/* Buttons */
.btn {
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
}

/* Footer */
footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.7);
    padding: 20px 0;
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 2px solid #e1e1e1;
    padding: 0.6rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

/* Badges */
.badge {
    padding: 0.5em 0.85em;
    font-weight: 500;
    border-radius: 6px;
}

/* Alert Messages */
.alert {
    border-radius: 10px;
    border: none;
    border-left: 4px solid;
}

.alert-success {
    border-left-color: #11998e;
    background-color: rgba(17, 153, 142, 0.1);
}

.alert-danger {
    border-left-color: #e94560;
    background-color: rgba(233, 69, 96, 0.1);
}

.alert-info {
    border-left-color: #00b4d8;
    background-color: rgba(0, 180, 216, 0.1);
}

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

/* Progress Bars */
.progress {
    border-radius: 10px;
    overflow: hidden;
    height: 8px;
}

/* Card Headers */
.card-header {
    font-weight: 600;
    border-bottom: none;
    background-color: transparent;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Sidebar Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
}

/* Responsive Improvements */
@media (max-width: 991.98px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .main-content {
        padding-top: 70px !important;
    }
}

/* Custom Utilities */
.text-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* List Group */
.list-group-item {
    border-radius: 8px !important;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.list-group-item:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

.list-group-flush .list-group-item {
    border-radius: 0 !important;
    border-left: none;
    border-right: none;
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Stats Display */
.display-4 {
    font-weight: 300;
    line-height: 1.2;
}

/* Icon Sizes */
.bi {
    vertical-align: -0.125em;
}

/* Status Indicators */
.status-active {
    color: #11998e;
}

.status-inactive {
    color: #6c757d;
}

.status-suspended {
    color: #e94560;
}

/* Quick Actions */
.quick-actions .btn {
    min-width: 150px;
}

/* Search Results */
#searchResults .list-group-item {
    cursor: pointer;
    border-left: 3px solid transparent;
}

#searchResults .list-group-item:hover {
    border-left-color: #667eea;
    background-color: #f8f9fa;
}

/* Dropdown Menu */
.dropdown-menu {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 6px;
    padding: 0.6rem 1rem;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: rgba(102, 126, 234, 0.1);
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card, .alert {
    animation: fadeIn 0.3s ease-out;
}

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

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f1f1;
}

.page-header h2 {
    font-weight: 600;
    color: #1a1a2e;
}

/* Responsive Footer */
@media (max-width: 991.98px) {
    footer {
        margin-left: 0 !important;
    }
}
