/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.logo h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.logo p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    font-weight: 300;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.section {
    animation: fadeInUp 0.6s ease-out;
}

.section.hidden {
    display: none;
}

/* Cards */
.card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.danger-card {
    border-left: 4px solid #e74c3c;
    background: linear-gradient(135deg, #fff 0%, #fef7f7 100%);
}

.card h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.card p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #667eea;
}

.user-details h2 {
    margin-bottom: 5px;
    color: #2c3e50;
}

.user-details p {
    margin-bottom: 5px;
    color: #666;
}

.user-id {
    font-size: 0.9rem;
    color: #999;
    font-family: monospace;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 48px;
}

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

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-danger {
    background: #e74c3c;
    color: white;
    font-size: 1.1rem;
    padding: 15px 30px;
}

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

.btn-outline {
    background: transparent;
    color: #6c757d;
    border: 2px solid #6c757d;
}

.btn-outline:hover:not(:disabled) {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
}

.icon {
    font-size: 1.2em;
}

/* Google Sign-In Button */
.g_id_signin {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

/* Compliance Notice */
.compliance-notice {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.compliance-notice h3 {
    color: #1565c0;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.compliance-notice p {
    color: #1565c0;
    margin-bottom: 10px;
}

/* Info Notice */
.info-notice {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.info-notice h3 {
    color: #1565c0;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.info-notice p {
    color: #1565c0;
    margin-bottom: 10px;
}

.info-notice ul {
    margin: 15px 0;
    padding-left: 20px;
}

.info-notice li {
    color: #1565c0;
    margin-bottom: 8px;
}

/* Warning Box */
.warning-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.warning-box h3 {
    color: #856404;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.warning-box p {
    color: #856404;
    margin-bottom: 10px;
}

.warning-box ul {
    margin: 15px 0;
    padding-left: 20px;
}

.warning-box li {
    color: #856404;
    margin-bottom: 5px;
}

/* Data Info */
.data-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.data-info h4 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.data-info p {
    color: #6c757d;
    margin-bottom: 10px;
}

.data-info ul {
    margin: 15px 0;
    padding-left: 20px;
}

.data-info li {
    color: #6c757d;
    margin-bottom: 5px;
}

/* Deletion Steps */
.deletion-steps {
    margin: 30px 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

.step label {
    cursor: pointer;
    font-weight: 500;
    color: #495057;
    line-height: 1.4;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 30px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.warning-text {
    color: #e74c3c;
    font-weight: 600;
    margin-top: 10px;
}

.info-text {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Messages */
.message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: slideInRight 0.3s ease-out;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    margin-left: 15px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    color: rgba(255,255,255,0.8);
    margin-top: 40px;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 2.5rem;
    }
    
    .card {
        padding: 20px;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
    }
    
    .avatar {
        width: 60px;
        height: 60px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .message-container {
        left: 15px;
        right: 15px;
        max-width: none;
    }
    
    .compliance-notice,
    .warning-box,
    .data-info {
        padding: 15px;
    }
    
    .deletion-steps .step {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 2rem;
    }
    
    .card {
        padding: 15px;
    }
    
    .warning-box {
        padding: 15px;
    }
    
    .step {
        padding: 10px;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

/* ⭐ THE SIGN-IN BUTTON — ours, not Google's rendered widget.
   Added 17 Sep 2026: the markup asked for `.btn-primary .btn-google` and
   neither existed, so the button drew at its intrinsic size and the Arabic
   label collided with the word "Google". */
.btn-google {
    background: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.15);
    /* The label is Arabic and the mark is a logo — centre them and let the
       button size itself to the text rather than clipping it. */
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 340px;
    margin: 8px auto 0;
    padding: 12px 20px;
    font-size: 0.95rem;
    line-height: 1.4;
    white-space: normal;
}

.btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3);
}

.btn-google:active { background: #f1f3f4; }

.btn-google:disabled { opacity: 0.6; cursor: not-allowed; }

/* Google's mark, drawn inline so the button needs no extra request and no
   remote asset that could fail to load behind a slow network. */
.btn-google .g-mark {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}
