/* Login & Register Forms */
.scdev-login-wrapper {
    max-width: 400px;
    margin: 40px auto;
    text-align: center;
}

.btn-show-login {
    width: 200px;
    padding: 12px;
    background: #0ea5e9;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
}

.btn-show-login:hover {
    background: #0284c7;
}

.scdev-login-form,
.scdev-register-form,
.scdev-reset-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease-out;
    text-align: left;
}

/* Dark Mode Support */
body.dark-mode .scdev-login-form,
body.dark .scdev-login-form,
body.night-mode .scdev-login-form,
body[data-theme="dark"] .scdev-login-form,
body[data-mode="dark"] .scdev-login-form,
html.dark-mode .scdev-login-form,
html.dark .scdev-login-form,
html[data-theme="dark"] .scdev-login-form,
html[data-scdev-dark="true"] .scdev-login-form,
body.dark-mode .scdev-register-form,
body.dark .scdev-register-form,
body.night-mode .scdev-register-form,
body[data-theme="dark"] .scdev-register-form,
body[data-mode="dark"] .scdev-register-form,
html.dark-mode .scdev-register-form,
html.dark .scdev-register-form,
html[data-theme="dark"] .scdev-register-form,
html[data-scdev-dark="true"] .scdev-register-form,
body.dark-mode .scdev-reset-form,
body.dark .scdev-reset-form,
body.night-mode .scdev-reset-form,
body[data-theme="dark"] .scdev-reset-form,
body[data-mode="dark"] .scdev-reset-form,
html.dark-mode .scdev-reset-form,
html.dark .scdev-reset-form,
html[data-theme="dark"] .scdev-reset-form,
html[data-scdev-dark="true"] .scdev-reset-form {
    background: rgba(30, 30, 30, 0.95);
    color: #e0e0e0;
}

body.dark-mode .form-group input,
body.dark .form-group input,
body.night-mode .form-group input,
body[data-theme="dark"] .form-group input,
body[data-mode="dark"] .form-group input,
html.dark-mode .form-group input,
html.dark .form-group input,
html[data-theme="dark"] .form-group input,
html[data-scdev-dark="true"] .form-group input,
body.dark-mode .form-group select,
body.dark .form-group select,
body.night-mode .form-group select,
body[data-theme="dark"] .form-group select,
body[data-mode="dark"] .form-group select,
html.dark-mode .form-group select,
html.dark .form-group select,
html[data-theme="dark"] .form-group select,
html[data-scdev-dark="true"] .form-group select {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .form-group label,
body.dark .form-group label,
body.night-mode .form-group label,
body[data-theme="dark"] .form-group label,
body[data-mode="dark"] .form-group label,
html.dark-mode .form-group label,
html.dark .form-group label,
html[data-theme="dark"] .form-group label,
html[data-scdev-dark="true"] .form-group label {
    color: #e0e0e0;
}

body.dark-mode .divider span,
body.dark .divider span,
body.night-mode .divider span,
body[data-theme="dark"] .divider span,
body[data-mode="dark"] .divider span,
html.dark-mode .divider span,
html.dark .divider span,
html[data-theme="dark"] .divider span,
html[data-scdev-dark="true"] .divider span {
    background: #1e1e1e;
    color: #999;
}

body.dark-mode .divider::before,
body.dark .divider::before,
body.night-mode .divider::before,
body[data-theme="dark"] .divider::before,
body[data-mode="dark"] .divider::before,
html.dark-mode .divider::before,
html.dark .divider::before,
html[data-theme="dark"] .divider::before,
html[data-scdev-dark="true"] .divider::before {
    background: #444;
}

body.dark-mode .info-item,
body.dark .info-item,
body.night-mode .info-item,
body[data-theme="dark"] .info-item,
body[data-mode="dark"] .info-item,
html.dark-mode .info-item,
html.dark .info-item,
html[data-theme="dark"] .info-item,
html[data-scdev-dark="true"] .info-item {
    background: #2a2a2a;
    color: #e0e0e0;
}

body.dark-mode .tab-content,
body.dark .tab-content,
body.night-mode .tab-content,
body[data-theme="dark"] .tab-content,
body[data-mode="dark"] .tab-content,
html.dark-mode .tab-content,
html.dark .tab-content,
html[data-theme="dark"] .tab-content,
html[data-scdev-dark="true"] .tab-content {
    background: #1e1e1e;
    color: #e0e0e0;
}

body.dark-mode .profile-tabs,
body.dark .profile-tabs,
body.night-mode .profile-tabs,
body[data-theme="dark"] .profile-tabs,
body[data-mode="dark"] .profile-tabs,
html.dark-mode .profile-tabs,
html.dark .profile-tabs,
html[data-theme="dark"] .profile-tabs,
html[data-scdev-dark="true"] .profile-tabs {
    background: #2a2a2a;
    border-bottom-color: #444;
}

body.dark-mode .tab-btn,
body.dark .tab-btn,
body.night-mode .tab-btn,
body[data-theme="dark"] .tab-btn,
body[data-mode="dark"] .tab-btn,
html.dark-mode .tab-btn,
html.dark .tab-btn,
html[data-theme="dark"] .tab-btn,
html[data-scdev-dark="true"] .tab-btn {
    color: #999;
}

body.dark-mode .tab-btn.active,
body.dark .tab-btn.active,
body.night-mode .tab-btn.active,
body[data-theme="dark"] .tab-btn.active,
body[data-mode="dark"] .tab-btn.active,
html.dark-mode .tab-btn.active,
html.dark .tab-btn.active,
html[data-theme="dark"] .tab-btn.active,
html[data-scdev-dark="true"] .tab-btn.active {
    color: #0ea5e9;
}

body.dark-mode .order-card,
body.dark .order-card,
body.night-mode .order-card,
body[data-theme="dark"] .order-card,
body[data-mode="dark"] .order-card,
html.dark-mode .order-card,
html.dark .order-card,
html[data-theme="dark"] .order-card,
html[data-scdev-dark="true"] .order-card {
    border-color: #444;
    background: #2a2a2a;
}

body.dark-mode .order-header,
body.dark .order-header,
body.night-mode .order-header,
body[data-theme="dark"] .order-header,
body[data-mode="dark"] .order-header,
html.dark-mode .order-header,
html.dark .order-header,
html[data-theme="dark"] .order-header,
html[data-scdev-dark="true"] .order-header {
    border-bottom-color: #444;
}

body.dark-mode .settings-section,
body.dark .settings-section,
body.night-mode .settings-section,
body[data-theme="dark"] .settings-section,
body[data-mode="dark"] .settings-section,
html.dark-mode .settings-section,
html.dark .settings-section,
html[data-theme="dark"] .settings-section,
html[data-scdev-dark="true"] .settings-section {
    border-bottom-color: #444;
}

body.dark-mode .settings-section h4,
body.dark .settings-section h4,
body.night-mode .settings-section h4,
body[data-theme="dark"] .settings-section h4,
body[data-mode="dark"] .settings-section h4,
html.dark-mode .settings-section h4,
html.dark .settings-section h4,
html[data-theme="dark"] .settings-section h4,
html[data-scdev-dark="true"] .settings-section h4 {
    color: #e0e0e0;
}

body.dark-mode .order-date,
body.dark .order-date,
body.night-mode .order-date,
body[data-theme="dark"] .order-date,
body[data-mode="dark"] .order-date,
html.dark-mode .order-date,
html.dark .order-date,
html[data-theme="dark"] .order-date,
html[data-scdev-dark="true"] .order-date {
    color: #999;
}

body.dark-mode .field-hint,
body.dark .field-hint,
body.night-mode .field-hint,
body[data-theme="dark"] .field-hint,
body[data-mode="dark"] .field-hint,
html.dark-mode .field-hint,
html.dark .field-hint,
html[data-theme="dark"] .field-hint,
html[data-scdev-dark="true"] .field-hint {
    color: #999;
}

body.dark-mode .tab-content h3,
body.dark .tab-content h3,
body.night-mode .tab-content h3,
body[data-theme="dark"] .tab-content h3,
body[data-mode="dark"] .tab-content h3,
html.dark-mode .tab-content h3,
html.dark .tab-content h3,
html[data-theme="dark"] .tab-content h3,
html[data-scdev-dark="true"] .tab-content h3 {
    color: #e0e0e0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scdev-login-form h2,
.scdev-register-form h2,
.scdev-reset-form h2 {
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
    line-height: 1.2;
}

.btn-google-login {
    width: 100%;
    padding: 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-google-login:hover {
    background: #f8f9fa;
}

.divider {
    text-align: center;
    margin: 15px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #ddd;
}

.divider span {
    background: #fff;
    padding: 0 10px;
    position: relative;
    color: #666;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
}

.terms-group {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal;
    font-size: 13px;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-label a {
    color: #0ea5e9;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.btn-submit {
    width: 75%;
    padding: 14px;
    background: #0ea5e9;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin: 5px auto 0;
    display: block;
}

.btn-submit:hover {
    background: #0284c7;
}

.logout-wrapper {
    text-align: center;
}

.btn-logout {
    display: inline-block;
    width: 75%;
    padding: 14px;
    background: #0ea5e9;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    box-sizing: border-box;
}

.btn-logout:hover {
    background: #0284c7;
    color: #fff;
}

.form-links {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 14px;
}

.form-links a {
    color: #0ea5e9;
    text-decoration: none;
}

.form-links a:hover {
    text-decoration: underline;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

.register-link a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* Profile Page */
.scdev-profile-page {
    max-width: 1000px;
    margin: 0 auto;
}

.profile-banner {
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 8px 0 0;
    position: relative;
    padding: 0 20px;
}

.avatar-success {
    position: absolute;
    top: 10px;
    right: 20px;
    background: #28a745;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.banner-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.banner-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    object-fit: cover;
    cursor: pointer;
}

.banner-avatar:hover {
    opacity: 0.9;
}

.banner-name {
    margin: 0;
    font-size: 24px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
    font-weight: 600;
}

.btn-upload-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0ea5e9;
    color: #fff;
    border: 2px solid #fff;
    cursor: pointer;
    font-size: 12px;
    position: absolute;
    bottom: 0;
    left: 65px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-upload-avatar:hover {
    background: #0284c7;
}

.profile-tabs {
    display: flex;
    background: #fff;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
}

.tab-btn.active {
    color: #0ea5e9;
    border-bottom-color: #0ea5e9;
}

.tab-content {
    display: none;
    padding: 30px;
    background: #fff;
    border-radius: 0 0 8px 8px;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.2;
}

.settings-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.settings-section:last-of-type {
    border-bottom: none;
}

.settings-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
    line-height: 1.2;
}

.field-hint {
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

.info-grid {
    display: grid;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.user-level-badge {
    display: inline-block;
}

.level-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.level-admin {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.level-editor {
    background: linear-gradient(135deg, #fd7e14 0%, #e8590c 100%);
    color: #fff;
    box-shadow: 0 2px 4px rgba(253, 126, 20, 0.3);
}

.level-author {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #000;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.level-contributor {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: #fff;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.3);
}

.level-member {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: #fff;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

/* Custom level badges - can be styled dynamically */
.level-badge[class*="level-"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.order-date {
    color: #666;
    font-size: 14px;
}

.order-items {
    margin-bottom: 15px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    gap: 15px;
}

.btn-download {
    padding: 6px 12px;
    background: #0ea5e9;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.btn-download:hover {
    background: #0284c7;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.order-status {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .profile-tabs {
        flex-direction: column;
    }
}
