/* assets/css/styles.css */

/* Base form styles */
.nzb-subscription-form {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
}

.nzb-subscription-form * {
    box-sizing: border-box;
}

.nzb-subscription-form .form-group {
    margin-bottom: 20px;
}

.nzb-subscription-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.nzb-subscription-form input[type="text"],
.nzb-subscription-form input[type="email"],
.nzb-subscription-form input[type="tel"],
.nzb-subscription-form textarea,
.nzb-subscription-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.nzb-subscription-form input:focus,
.nzb-subscription-form textarea:focus,
.nzb-subscription-form select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Button styles */
.nzb-subscription-form .btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nzb-subscription-form .btn-primary {
    background-color: #0073aa;
    color: white;
}

.nzb-subscription-form .btn-primary:hover {
    background-color: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nzb-subscription-form .btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading state */
.nzb-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: nzb-spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes nzb-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error messages */
.nzb-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px 20px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 10px 0;
}

/* Success messages */
.nzb-success {
    background-color: #d4edda;
    color: #155724;
    padding: 12px 20px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin: 10px 0;
}

/* Responsive styles */
@media (max-width: 600px) {
    .nzb-subscription-form {
        padding: 0 15px;
    }
    
    .nzb-subscription-form .btn {
        width: 100%;
        padding: 14px 24px;
    }
    
    .nzb-plans-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Accessibility */
.nzb-subscription-form input:focus,
.nzb-subscription-form textarea:focus,
.nzb-subscription-form select:focus,
.nzb-subscription-form button:focus {
    outline: 3px solid #0073aa;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .nzb-subscription-form {
        display: none;
    }
    
    .nzb-pricing-table {
        page-break-inside: avoid;
    }
}

/* Animation for form appearance */
.nzb-subscription-form {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notifications */
.nzb-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    z-index: 10001;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    min-width: 300px;
    animation: slideInRight 0.3s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.nzb-notification.nzb-success {
    background-color: #28a745;
    border-left: 4px solid #1e7e34;
}

.nzb-notification.nzb-error {
    background-color: #dc3545;
    border-left: 4px solid #c82333;
}

.nzb-notification.nzb-info {
    background-color: #17a2b8;
    border-left: 4px solid #138496;
}

.nzb-notification.nzb-warning {
    background-color: #ffc107;
    color: #212529;
    border-left: 4px solid #e0a800;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Final confirmation modal */
#nzb-final-confirm-modal .nzb-modal-content {
    animation: bounceIn 0.3s ease-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    70% {
        transform: scale(0.9);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Stack multiple notifications */
.nzb-notification:nth-child(n+2) {
    top: calc(20px + 80px * var(--notification-index, 1));
}

/* Mobile responsive notifications */
@media (max-width: 768px) {
    .nzb-notification {
        left: 10px;
        right: 10px;
        min-width: auto;
        top: 10px;
    }
    
    .nzb-notification:nth-child(n+2) {
        top: calc(10px + 70px * var(--notification-index, 1));
    }
}

/* Loading state in notifications */
.nzb-notification .nzb-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dismiss hint */
.nzb-notification::after {
    content: '✕';
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 12px;
    opacity: 0.7;
    line-height: 1;
}

.nzb-notification:hover::after {
    opacity: 1;
}

/* Success checkmark animation */
.nzb-notification.nzb-success::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat center;
    background-size: contain;
    vertical-align: middle;
    animation: checkmarkBounce 0.6s ease-out;
}

@keyframes checkmarkBounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

/* Dashboard Styling */
.account-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}


.account-header {
    background-color: #005a87;
    color: white;
    border-radius: 12px; 
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top:35px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-avatar img {
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    width: 80px;
    height: 80px;
}

.user-info h1 {
    margin: 0 0 5px 0;
    font-size: 2em;
    font-weight: 600;
}

.user-email {
    margin: 0 0 10px 0;
    opacity: 0.9;
    font-size: 1.1em;
}

.account-tagline {
    margin: 0;
    opacity: 0.8;
    font-size: 0.95em;
}

.account-layout {
    display: flex;
    gap: 30px;
}


.account-sidebar {
    min-width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar-header {
    padding: 20px 20px 10px 20px;
    border-bottom: 1px solid #eee;
}

.sidebar-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.1em;
    font-weight: 600;
}

.account-menu {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.account-menu li {
    margin: 0;
}

.dashboard-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    
}

.dashboard-menu-item:hover {
    background: #f8f9fa;
    color: #333;
}

.dashboard-menu-item.active {
    background: #f0f4ff;
    color: #2563eb;
    border-left-color: #2563eb;
}

.menu-icon {
    font-size: 1.2em;
    min-width: 20px;
}

.menu-text {
    flex: 1;
}

.menu-text div {
    font-weight: 600;
    margin-bottom: 2px;
}

.menu-description {
    font-size: 0.85em;
    color: #888;
    font-weight: 400 !important;
}

.sidebar-actions {
    padding: 15px 20px;
    border-top: 1px solid #eee;
}

.logout-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #e9ecef;
    color: #333;
}

.account-content {
    flex: 1;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.content-section {
    display: none;
    padding: 30px;
}

.content-section.active {
    display: block;
}

.content-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f3f4;
}

.content-header h2 {
    margin: 0 0 8px 0;
    color: #1a202c;
    font-size: 1.8em;
    font-weight: 600;
}

.content-header p {
    margin: 0;
    color: #666;
    font-size: 1.05em;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #f6f9fc 0%, #ffffff 100%);
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.stat-icon {
    font-size: 2.5em;
    opacity: 0.8;
}

.stat-info h3 {
    margin: 0 0 4px 0;
    font-size: 0.9em;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.stat-value {
    margin: 0 0 4px 0 !important;
    font-size: 1.4em;
    font-weight: 700;
    color: #1a202c;
}

.stat-card small {
    color: #888;
    font-size: 0.85em;
}

.subscription-stat.stat-card {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0fff0 100%);
    border-color: #d4edda;
}

.dashboard-actions {
    margin-bottom: 40px;
}

.dashboard-actions h3 {
    margin: 0 0 20px 0;
    color: #1a202c;
    font-size: 1.3em;
    font-weight: 600;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: #2563eb;
}

.action-icon {
    font-size: 2em;
    opacity: 0.7;
}

.action-text h4 {
    margin: 0 0 4px 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #1a202c;
}

.action-text p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
}

.dashboard-activity h3 {
    margin: 0 0 20px 0;
    color: #1a202c;
    font-size: 1.3em;
    font-weight: 600;
}

.activity-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    font-size: 1.3em;
    opacity: 0.7;
}

.activity-content p {
    margin: 0 0 2px 0;
    font-size: 0.95em;
    color: #333;
}

.activity-content small {
    color: #666;
    font-size: 0.85em;
}

.account-form {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95em;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-help {
    display: block;
    margin-top: 4px;
    color: #666;
    font-size: 0.85em;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

.security-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.security-card h3 {
    margin: 0 0 20px 0;
    color: #1a202c;
    font-size: 1.2em;
    font-weight: 600;
}

.activity-table {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.activity-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    padding: 15px 20px;
    background: #f1f3f4;
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.notification-success {
    background: #10b981;
}

.notification-error {
    background: #ef4444;
}

@media (max-width: 768px) {
    .account-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .account-sidebar {
        min-width: auto;
        position: static;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .activity-header {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .account-page {
        padding: 15px;
    }
    
    .account-header {
        padding: 20px;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .user-info h1 {
        font-size: 1.5em;
    }
}