/* Account Hub Styles */

.account-hub {
    padding: 1rem;
}

.account-header {
    background: linear-gradient(135deg, #63b43a 0%, #4a8a2a 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.account-header h3 {
    margin: 0;
    font-weight: 600;
}

.account-header .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Tab Navigation */
.account-tabs .nav-pills {
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.account-tabs .nav-link {
    color: #cdcdcd;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.account-tabs .nav-link:hover {
    color: #495057;
    background: rgba(255, 255, 255, 0.5);
}

.account-tabs .nav-link.active {
    background: #fff;
    color: #63b43a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Subscription Badge */
.subscription-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.subscription-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.subscription-badge.active {
    background: rgba(40, 167, 69, 0.2);
    border-color: rgba(40, 167, 69, 0.5);
}

.subscription-badge.trial {
    background: rgba(23, 162, 184, 0.2);
    border-color: rgba(23, 162, 184, 0.5);
}

.subscription-badge.expired {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.5);
}

.subscription-badge .plan-name {
    margin-right: 0.5rem;
    font-weight: 600;
}

/* Usage Meter */
.usage-meter {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.usage-meter .progress {
    background: #e9ecef;
    border-radius: 1rem;
    overflow: hidden;
}

.usage-meter .progress-bar {
    transition: width 0.3s ease;
}

/* Stat Cards */
.stat-card {
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Quick Action Cards */
.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #495057;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.quick-action-card:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #63b43a;
}

.quick-action-card i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #63b43a;
}

/* Avatar */
.avatar-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Station Group (for alarm subscriptions) */
.station-group {
    background: #fff;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
}

.station-header {
    border-radius: 0.5rem 0.5rem 0 0;
}

.station-devices {
    padding: 0.5rem 0;
}

/* Security Items */
.security-item {
    transition: all 0.2s ease;
}

.security-item:hover {
    background: #e9ecef !important;
}

/* Form Styling */
.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control:focus, .form-select:focus {
    border-color: #63b43a;
    box-shadow: 0 0 0 0.2rem rgba(99, 180, 58, 0.25);
}

/* Card Headers */
.card-header {
    font-weight: 600;
 /*   background: #f8f9fa;
    color: #777777;*/
}

.card-header h6 {
    margin: 0;
}

/* Tab Content Transitions */
.tab-content {
    animation: fadeIn 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .account-tabs .nav-pills {
        flex-direction: column;
    }
    
    .account-tabs .nav-item {
        margin-bottom: 0.25rem;
    }
    
    .account-header .row {
        flex-direction: column;
        text-align: center;
    }
    
    .account-header .text-end {
        text-align: center !important;
        margin-top: 1rem;
    }
}

/* Subscription Result Page Animations */
@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideIn {
    0% {
        transform: translateX(-50px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}
