/* Dashboard Styles */
.dashboard-header {
    background: linear-gradient(135deg, #ff5a5f, #ff7e82);
    color: white;
    padding: 2rem 5%;
    text-align: center;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.dashboard-overview {
    padding: 2rem 5%;
    background-color: #f9f9f9;
}

.dashboard-stats {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    flex: 1;
    min-width: 250px;
    display: flex;
    align-items: center;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background-color: #f0f4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
}

.stat-icon i {
    font-size: 1.8rem;
    color: #ff5a5f;
}

.stat-details h3 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #333;
}

.stat-info {
    font-size: 0.8rem;
    color: #888;
}

.dashboard-content {
    padding: 2rem 5%;
}

.dashboard-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 2rem;
    overflow-x: auto;
}

.tab-button {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-button:hover {
    color: #ff5a5f;
}

.tab-button.active {
    color: #ff5a5f;
    border-bottom-color: #ff5a5f;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.content-header h2 {
    margin: 0;
    text-align: left;
}

.licenses-table, .invoice-history {
    width: 100%;
    overflow-x: auto;
}

.licenses-table table, .invoice-history table {
    width: 100%;
    border-collapse: collapse;
}

.licenses-table th, .licenses-table td,
.invoice-history th, .invoice-history td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.licenses-table th, .invoice-history th {
    font-weight: 600;
    color: #333;
    background-color: #f5f5f5;
}

.licenses-table tr:hover, .invoice-history tr:hover {
    background-color: #f9f9f9;
}

.status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status.active {
    background-color: #e3f9e5;
    color: #34c759;
}

.status.inactive {
    background-color: #ffeaea;
    color: #ff3b30;
}

.status.paid {
    background-color: #e3f9e5;
    color: #34c759;
}

.action-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1rem;
    margin-right: 0.5rem;
    transition: color 0.3s ease;
}

.action-btn:hover {
    color: #ff5a5f;
}

.date-filter {
    display: flex;
    align-items: center;
}

.date-filter label {
    margin-right: 0.5rem;
    font-weight: 600;
}

.date-filter select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.activity-chart {
    margin-bottom: 2rem;
}

.chart-placeholder {
    background-color: #f5f5f5;
    border-radius: 10px;
    padding: 5rem;
    text-align: center;
    color: #888;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    padding: 1rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.activity-icon {
    width: 40px;
    height: 40px;
    background-color: #f0f4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.activity-icon i {
    color: #ff5a5f;
}

.activity-time {
    font-size: 0.8rem;
    color: #888;
}

.billing-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.plan-details, .payment-method, .invoice-history {
    margin-bottom: 2rem;
}

.plan-card, .payment-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-top: 1rem;
}

.plan-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 1.1rem;
    color: #ff5a5f;
    margin-bottom: 0.5rem;
}

.plan-renewal {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.plan-features ul {
    padding-left: 1.5rem;
}

.plan-features li {
    margin-bottom: 0.5rem;
    position: relative;
}

.card-info {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.card-info i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #0077b6;
}

.card-expiry {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.settings-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h3 {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.form-group {
    margin-bottom: 1.5rem;
    flex: 1;
    min-width: 250px;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 0.5rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .dashboard-stats {
        flex-direction: column;
    }
    
    .stat-card {
        width: 100%;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .licenses-table, .invoice-history {
        overflow-x: auto;
    }
}