

:root {
    --danger-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --primary-color: #3498db;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --border-color: #ddd;
    --modal-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.delete-account-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(4px);
}

.delete-modal {
    position: relative;
    width: 400px;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    box-shadow: var(--modal-shadow);
    z-index: 1001;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -55%);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.delete-modal-content {
    padding: 30px 25px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #7f8c8d;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

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



.delete-modal-header {
    margin-bottom: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.warning-icon-large {
    font-size: 48px;
    line-height: 1;
}

.delete-modal-header h1 {
    margin: 0;
    font-size: 28px;
    color: var(--danger-color);
    font-weight: 600;
}



.confirmation-text {
    text-align: center;
    font-size: 16px;
    color: var(--text-dark);
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.highlight-delete {
    color: var(--danger-color);
    font-weight: 600;
}



.delete-modal-body {
    margin-top: 20px;
}

.warning-box {
    background: #fff3cd;
    border: 1px solid #ffe69c;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    color: #856404;
    font-size: 14px;
}

.warning-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 15px;
    color: #721c24;
}

.warning-box ul {
    margin: 0;
    padding-left: 20px;
    list-style-position: inside;
}

.warning-box li {
    margin: 6px 0;
    line-height: 1.5;
}



.delete-input-container {
    margin: 20px 0;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.delete-label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.delete-input,
.form-input {
    width: 100%;
    max-width: 350px;
    padding: 12px 45px 12px 12px;
    font-size: 14px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    transition: var(--transition);
    background: white;
    color: var(--text-dark);
    box-sizing: border-box;
    text-align: center;
}

.delete-input:focus,
.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.delete-input.valid {
    border-color: var(--success-color);
}

.delete-input.valid:focus {
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.delete-input.invalid {
    border-color: var(--danger-color);
}

.delete-input.invalid:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.validation-icon {
    position: absolute;
    right: 12px;
    font-size: 18px;
    font-weight: bold;
}

.validation-icon.valid {
    color: var(--success-color);
}

.validation-icon.invalid {
    color: var(--danger-color);
}

.input-hint {
    margin: 6px 0 0 0;
    font-size: 12px;
    color: #7f8c8d;
}



.error-message {
    background: #fadbd8;
    border: 1px solid #f5b7b1;
    border-radius: 6px;
    padding: 12px;
    margin: 15px 0;
    color: #c0392b;
    font-size: 13px;
    display: none;
}

.error-message.show {
    display: block;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}



.button-group {
    display: flex;
    gap: 12px;
    margin: 25px 0 15px 0;
}

.btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-cancel {
    background: #ecf0f1;
    color: var(--text-dark);
}

.btn-cancel:hover {
    background: #d5dbdb;
}



.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}



.privacy-notice {
    font-size: 12px;
    color: #7f8c8d;
    text-align: center;
    margin: 15px 0 0 0;
    line-height: 1.5;
}

.privacy-notice a {
    color: var(--primary-color);
    text-decoration: none;
}

.privacy-notice a:hover {
    text-decoration: underline;
}



.login-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    max-width: 90%;
    background: white;
    border-radius: 12px;
    box-shadow: var(--modal-shadow);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.login-modal-content {
    padding: 30px 25px;
}

.login-modal-header {
    margin-bottom: 25px;
    text-align: center;
}

.login-modal-header h1 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: var(--text-dark);
    font-weight: 600;
}

.login-modal-header p {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
}

.login-modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
}

.divider {
    text-align: center;
    color: #bdc3c7;
    font-size: 14px;
    margin: 15px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #ecf0f1;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.login-notice {
    font-size: 12px;
    color: #7f8c8d;
    text-align: center;
    margin: 15px 0 0 0;
}

.login-notice a {
    color: var(--primary-color);
    text-decoration: none;
}

.login-notice a:hover {
    text-decoration: underline;
}



.confirmation-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    max-width: 90%;
    background: white;
    border-radius: 12px;
    box-shadow: var(--modal-shadow);
    z-index: 1001;
    padding: 40px 25px;
    text-align: center;
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.confirmation-modal-content {
    text-align: center;
}

.success-icon {
    font-size: 48px;
    color: var(--success-color);
    margin-bottom: 16px;
    animation: bounce 0.6s ease-out;
}

@keyframes bounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.confirmation-modal h2 {
    margin: 0 0 12px 0;
    color: var(--text-dark);
    font-size: 20px;
}

.confirmation-modal p {
    margin: 8px 0;
    color: #7f8c8d;
    font-size: 14px;
}

.confirmation-note {
    font-weight: 500;
    color: var(--text-dark);
}

.redirect-timer {
    margin-top: 20px;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
}



.error-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    max-width: 90%;
    background: white;
    border-radius: 12px;
    box-shadow: var(--modal-shadow);
    z-index: 1001;
    animation: slideIn 0.3s ease-out;
}

.error-modal-content {
    padding: 40px 25px;
    position: relative;
    text-align: center;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.error-modal h2 {
    margin: 0 0 12px 0;
    color: var(--danger-color);
    font-size: 20px;
}

.error-modal p {
    margin: 8px 0 20px 0;
    color: #7f8c8d;
    font-size: 14px;
}



.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    margin-bottom: 10px;
    min-width: 300px;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success {
    border-left: 4px solid var(--success-color);
    color: var(--success-color);
}

.toast.error {
    border-left: 4px solid var(--danger-color);
    color: var(--danger-color);
}

.toast.warning {
    border-left: 4px solid var(--warning-color);
    color: var(--warning-color);
}

.toast.info {
    border-left: 4px solid var(--primary-color);
    color: var(--primary-color);
}



@media (max-width: 768px) {
    .delete-modal,
    .login-modal,
    .confirmation-modal,
    .error-modal {
        width: 95%;
        max-width: 95%;
        max-height: 85vh;
    }

    .delete-modal-content,
    .login-modal-content,
    .error-modal-content {
        padding: 25px 20px;
    }

    .delete-modal-header h1,
    .login-modal-header h1 {
        font-size: 20px;
    }

    .button-group {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
    }

    .delete-input,
    .form-input {
        padding: 11px 40px 11px 11px;
        font-size: 16px;
    }

    .toast-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: unset;
        max-width: unset;
    }
}



@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .delete-modal,
    .login-modal,
    .confirmation-modal,
    .error-modal {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        border-radius: 8px;
    }

    .delete-modal-content,
    .login-modal-content,
    .error-modal-content {
        padding: 20px 15px;
    }

    .delete-modal-header h1,
    .login-modal-header h1 {
        font-size: 18px;
    }

    .warning-box {
        padding: 12px;
        font-size: 13px;
    }

    .warning-box ul {
        padding-left: 18px;
    }

    .delete-label,
    .form-group label {
        font-size: 13px;
    }

    .delete-input,
    .form-input {
        padding: 10px 35px 10px 10px;
        font-size: 16px;
    }

    .input-hint {
        font-size: 11px;
    }

    .button-group {
        margin: 20px 0 12px 0;
    }

    .btn {
        padding: 11px 12px;
        font-size: 13px;
    }

    .close-btn {
        width: 28px;
        height: 28px;
        font-size: 24px;
    }

    .toast {
        padding: 14px 16px;
        font-size: 13px;
    }
}



@media (prefers-color-scheme: dark) {
    .delete-modal,
    .login-modal,
    .confirmation-modal,
    .error-modal {
        background: #2b2b2b;
        color: var(--text-light);
    }

    .delete-modal-header h1,
    .login-modal-header h1 {
        color: var(--text-light);
    }

    .delete-label,
    .form-group label {
        color: var(--text-light);
    }

    .delete-input,
    .form-input {
        background: #3a3a3a;
        color: var(--text-light);
        border-color: #555;
    }

    .delete-input:focus,
    .form-input:focus {
        border-color: var(--primary-color);
    }

    .close-btn {
        color: #bdc3c7;
    }

    .close-btn:hover {
        background: #3a3a3a;
        color: var(--text-light);
    }

    .btn-cancel {
        background: #3a3a3a;
        color: var(--text-light);
    }

    .btn-cancel:hover {
        background: #4a4a4a;
    }

    .warning-box {
        background: #3a3a3a;
        border-color: #555;
        color: #f0ad4e;
    }

    .warning-box strong {
        color: #f0ad4e;
    }

    .toast {
        background: #3a3a3a;
    }

    .input-hint,
    .privacy-notice,
    .login-notice,
    .login-modal-header p {
        color: #bdc3c7;
    }
}



@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

