/* Modern Responsive Styles for Account Pages */

/* Override owl.theme.css small font sizes */
.owl-theme .owl-controls .owl-buttons div,
.owl-theme .owl-controls .owl-page span.owl-numbers {
    font-size: 14px !important;
}

/* Base font size reset */
body {
    font-size: 16px;
    line-height: 1.6;
}

/* Layout */
.account-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 992px) {
    .main-content {
        flex-direction: row;
        align-items: flex-start;
    }
}

.main-content > div:first-child {
    flex: 1;
}

@media (min-width: 992px) {
    .sidebar {
        width: 350px;
        flex-shrink: 0;
    }
}

/* Account Header Cards */
.account-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .account-header {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.account-info-card,
.balance-card,
.statement-controls-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.account-info-card:hover,
.balance-card:hover,
.statement-controls-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Account Info */
.account-number {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.account-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 8px;
}

.account-email {
    color: #7f8c8d;
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.addresses {
    margin-top: 10px;
}

.address-item {
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 5px;
    padding: 8px 0;
    border-top: 1px solid #ecf0f1;
}

/* Balance Card */
.balance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #ecf0f1;
}

.balance-item:last-of-type {
    border-bottom: none;
}

.balance-label {
    font-size: 1.05rem;
    font-weight: 600;
    color: #555;
}

.balance-amount {
    font-size: 1.8rem;
    font-weight: 700;
}

.balance-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.balance-actions .btn {
    flex: 1;
    min-width: 150px;
}

/* Statement Controls */
.statement-selection {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.statement-meta {
    margin-top: 20px;
}

.meta-item {
    padding: 8px 0;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Responsive Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.statement-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    background: #fff;
}

.statement-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.statement-table th {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.statement-table th.text-right {
    text-align: right;
}

.statement-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #ecf0f1;
    font-size: 1.05rem;
}

.statement-table td.text-right {
    text-align: right;
}

.statement-table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.1) !important;
}

/* Outstanding Bills */
.outstanding-bills-section {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.outstanding-bills-section .alert-danger {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Sidebar */
.sidebar {
    position: relative;
}

.side-box-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.05rem;
}

.side-box-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Buttons */
.btn {
    border-radius: 6px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
}

.btn-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

.btn-green:hover {
    background: linear-gradient(135deg, #0d7a6e 0%, #2bc560 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-info:hover {
    background: linear-gradient(135deg, #5568d3 0%, #63408a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-default {
    background: #ecf0f1;
    color: #2c3e50;
}

.btn-default:hover {
    background: #d5dbdb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Jumbotron */
.jumbotron {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.jumbotron .display-4 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.jumbotron hr {
    border-color: rgba(255, 255, 255, 0.3);
    margin: 15px 0;
}

.jumbotron p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.jumbotron .btn-primary {
    background: #fff;
    color: #667eea;
    font-weight: 700;
    width: 100%;
    margin-top: 10px;
}

.jumbotron .btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .account-container {
        padding: 10px;
    }

    .account-header {
        gap: 15px;
    }

    .balance-actions {
        flex-direction: column;
    }

    .balance-actions .btn {
        width: 100%;
    }

    .statement-table {
        font-size: 0.95rem;
    }

    .statement-table th,
    .statement-table td {
        padding: 10px 8px;
    }

    .balance-amount {
        font-size: 1.5rem;
    }

    .jumbotron {
        padding: 20px;
    }

    .jumbotron h1 {
        font-size: 1.7rem;
    }
}

/* Modern Custom Switch Button */
.modern-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    user-select: none;
    padding: 10px 0;
}

.modern-switch-input {
    display: none;
}

.modern-switch-slider {
    position: relative;
    width: 70px;
    height: 36px;
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    border-radius: 100px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modern-switch-slider::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50% !important;
    background: #fff;
    top: 3px;
    left: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.modern-switch-input:checked + .modern-switch-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 12px rgba(102, 126, 234, 0.4);
}

.modern-switch-input:checked + .modern-switch-slider::before {
    transform: translateX(34px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.modern-switch:hover .modern-switch-slider {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 8px rgba(0, 0, 0, 0.1);
}

.modern-switch-input:checked + .modern-switch-slider:hover {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 16px rgba(102, 126, 234, 0.5);
}

.modern-switch-label {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.modern-switch-input:checked ~ .modern-switch-label {
    color: #667eea;
}

/* Utility */
.space {
    height: 20px;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}
