/* FastNetLite - Styles personnalisés */

/* Variables */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

/* Styles généraux */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

/* Styles de navigation */
.sidebar {
    min-height: 100vh;
    background-color: var(--dark-color);
    color: white;
    transition: all 0.3s;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
}

.sidebar .nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    color: white;
    background-color: var(--primary-color);
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 1.25rem;
    text-align: center;
}

/* Cards et tableaux */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.card-stats {
    cursor: pointer;
}

.card-stats:hover {
    transform: translateY(-5px);
}

.table th {
    font-weight: 600;
    background-color: var(--light-color);
}

/* Badges et statuts */
.badge-status {
    padding: 0.5rem 0.75rem;
    border-radius: 50rem;
    font-weight: 500;
}

.status-active {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.status-pending {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.status-expired {
    background-color: rgba(108, 117, 125, 0.1);
    color: var(--secondary-color);
}

.status-used {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
}

.status-failed {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

/* Formulaires */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        min-height: 0;
    }
    
    .card-stats {
        margin-bottom: 1rem;
    }
}

/* Loader */
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

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

/* Import modal */
.dropzone {
    border: 2px dashed #ccc;
    border-radius: 5px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.dropzone:hover {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
}

/* Profile cards */
.profile-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.profile-card.selected {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.price-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
}

/* Styles pour la page d'achat de codes WiFi */
.steps {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e9ecef;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.step.active .step-icon {
    background-color: var(--primary-color);
    color: white;
}

.step.completed .step-icon {
    background-color: var(--success-color);
    color: white;
}

.step-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6c757d;
    text-align: center;
    transition: all 0.3s ease;
}

.step.active .step-text {
    color: var(--primary-color);
    font-weight: 600;
}

.step.completed .step-text {
    color: var(--success-color);
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

/* Styles pour les cartes de profil */
.profile-card-buy {
    border: 2px solid transparent;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.profile-card-buy:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.profile-card-buy.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.profile-card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    position: relative;
}

.profile-card-price {
    font-size: 1.5rem;
    font-weight: bold;
}

.profile-card-body {
    padding: 1.5rem;
}

.profile-card-duration {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.profile-card-description {
    color: #495057;
    margin-bottom: 1rem;
}

/* Styles pour les méthodes de paiement */
.payment-method {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.payment-method:hover {
    background-color: #f8f9fa;
}

.payment-method.selected {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
}

.payment-method-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 50%;
}

.payment-method-info {
    flex: 1;
}

.payment-method-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.payment-method-description {
    font-size: 0.875rem;
    color: #6c757d;
}
