/**
 * Custom CSS for Freemius Account Page
 * Makes the account page more beautiful and modern
 */

/* Main Container */
.wrap.fs-section {
    background: transparent;
    padding: 20px 0;
}

/* Navigation Tabs */
.nav-tab-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
    padding: 0;
    margin-bottom: 0;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.nav-tab-wrapper .nav-tab {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    padding: 15px 25px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.nav-tab-wrapper .nav-tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ffc107;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-tab-wrapper .nav-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-tab-wrapper .nav-tab-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

.nav-tab-wrapper .nav-tab-active::before {
    transform: scaleX(1);
}

/* Account Container */
#fs_account {
    background: #ffffff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    animation: fadeInUp 0.5s ease;
}

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

/* Postbox Styling */
#fs_account .postbox {
    border: none;
    box-shadow: none;
    background: transparent;
    margin: 0;
}

#fs_account .postbox h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 20px 25px;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

#fs_account .postbox h3 .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #ffc107;
}

/* Header Actions */
.fs-header-actions {
    background: #f8f9fa;
    padding: 15px 25px;
    border-bottom: 1px solid #e9ecef;
}

.fs-header-actions ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.fs-header-actions li {
    margin: 0;
    padding: 0;
}

.fs-header-actions a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fs-header-actions a .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.fs-header-actions a:hover {
    background: #667eea;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Inside Content */
#fs_account .postbox .inside {
    padding: 25px;
    background: #ffffff;
}

/* Account Details Table */
#fs_account_details {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

#fs_account_details tbody tr {
    transition: all 0.3s ease;
}

#fs_account_details tbody tr:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

#fs_account_details tbody tr td {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

#fs_account_details tbody tr:last-child td {
    border-bottom: none;
}

#fs_account_details tbody tr td:first-child {
    font-weight: 600;
    color: #495057;
    width: 200px;
    min-width: 200px;
}

#fs_account_details tbody tr td:last-child {
    color: #212529;
}

/* Key-Value Table */
.fs-key-value-table {
    background: #ffffff;
}

.fs-key-value-table tbody tr {
    border-bottom: 1px solid #e9ecef;
}

.fs-key-value-table tbody tr:last-child {
    border-bottom: none;
}

/* Buttons */
#fs_account .button,
#fs_account .button-primary,
#fs_account .button-secondary {
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#fs_account .button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

#fs_account .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

#fs_account .button-secondary {
    background: #6c757d;
    color: #ffffff;
}

#fs_account .button-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* License Status Badges */
.fs-license-key-container,
.fs-license-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    background: #e9ecef;
    color: #495057;
}

.fs-license-status.active {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #ffffff;
}

.fs-license-status.expired {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #ffffff;
}

.fs-license-status.cancelled {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #ffffff;
}

/* Plan Information */
.fs-plan-name {
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 5px;
}

.fs-plan-title {
    font-size: 16px;
    color: #495057;
}

/* Site Information */
.fs-site-url {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.fs-site-url:hover {
    text-decoration: underline;
}

/* Addons Section */
.fs-addons-container {
    margin-top: 30px;
}

.fs-addons-container h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 20px 25px;
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

/* Billing Section */
#fs_billing {
    margin-top: 30px;
}

#fs_billing .postbox {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

#fs_billing .postbox h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 20px 25px;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

/* Payment History */
.fs-payments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fs-payments-list li {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.fs-payments-list li:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.fs-payments-list li:last-child {
    border-bottom: none;
}

/* Forms */
#fs_account form {
    display: inline-block;
    margin: 0;
}

/* Input Fields */
#fs_account input[type="text"],
#fs_account input[type="email"],
#fs_account input[type="password"],
#fs_account textarea,
#fs_account select {
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
}

#fs_account input[type="text"]:focus,
#fs_account input[type="email"]:focus,
#fs_account input[type="password"]:focus,
#fs_account textarea:focus,
#fs_account select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Sidebar */
.has-sidebar.has-right-sidebar {
    display: flex;
    gap: 20px;
}

.has-sidebar-content {
    flex: 1;
    min-width: 0;
}

/* Responsive Design */
@media (max-width: 782px) {
    .nav-tab-wrapper {
        flex-direction: column;
    }
    
    .nav-tab-wrapper .nav-tab {
        width: 100%;
        text-align: left;
        border-radius: 0;
    }
    
    #fs_account .postbox h3 {
        font-size: 18px;
        padding: 15px 20px;
    }
    
    #fs_account_details tbody tr td:first-child {
        width: 150px;
        min-width: 150px;
    }
    
    .fs-header-actions ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .fs-header-actions li {
        width: 100%;
    }
    
    .has-sidebar.has-right-sidebar {
        flex-direction: column;
    }
}

/* Loading States */
.fs-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success Messages */
.fs-notice-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

/* Error Messages */
.fs-notice-error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

/* Info Messages */
.fs-notice-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.2);
}

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

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

#fs_account::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

#fs_account::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Additional Polish */
#fs_account .postbox .inside > *:first-child {
    margin-top: 0;
}

#fs_account .postbox .inside > *:last-child {
    margin-bottom: 0;
}

/* Smooth Transitions */
#fs_account * {
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}






