@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #2e1065 0%, #5b21b6 50%, #8b5cf6 100%);
    min-height: 100vh;
    position: relative;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.message-item {
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    cursor: pointer;
}

.message-item.unread {
    background-color: #faf5ff;
    border-left: 3px solid #8b5cf6;
}

.message-item.unread .message-from {
    font-weight: 600;
    color: #2e1065;
}

.message-item.read {
    background-color: #ffffff;
    opacity: 0.8;
}

.message-item.read .message-from {
    font-weight: 400;
    color: #6b7280;
}

.message-item:hover {
    background-color: #f5f3ff;
}

.purple-button {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: 9999px;
    padding: 0.75rem 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.purple-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(124, 58, 237, 0.4);
}

.purple-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.green-button {
    background: linear-gradient(135deg, #10b981, #059669);
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

.green-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(16, 185, 129, 0.4);
}

.green-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.email-box {
    border: 2px solid #8b5cf6;
    border-radius: 20px;
    background: white;
    padding: 1.25rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top: 6px solid #8b5cf6;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    color: white;
    font-size: 18px;
    font-weight: 500;
}

.toast {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 24px;
}

.otp-highlight {
    background: #f0fdf4;
    border: 2px solid #22c55e;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    text-align: center;
}

.qr-hover-container {
    position: relative;
    display: inline-block;
}

.qr-hover-trigger {
    cursor: pointer;
    color: #8b5cf6;
    transition: all 0.2s ease;
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.qr-hover-trigger:hover {
    color: #6d28d9;
    transform: scale(1.1);
    background-color: #f3e8ff;
}

.qr-hover-popup {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: white;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2);
    display: none;
    z-index: 50;
    margin-bottom: 10px;
    border: 2px solid #8b5cf6;
}

.qr-hover-container:hover .qr-hover-popup {
    display: block;
}

.qr-hover-popup canvas {
    width: 120px;
    height: 120px;
    display: block;
}

.adsense-banner {
    width: 100%;
    min-height: 90px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    backdrop-filter: blur(5px);
    border-radius: 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

@media (max-width: 640px) {
    .adsense-banner {
        min-height: 70px;
        margin: 15px 0;
        font-size: 12px;
    }
}

.expiry-timer {
    background: white;
    border-radius: 30px;
    padding: 8px 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.expiry-timer.green {
    background: #f0fdf4;
    color: #166534;
    border-color: #86efac;
}

.expiry-timer.yellow {
    background: #fef9c3;
    color: #854d0e;
    border-color: #facc15;
}

.expiry-timer.orange {
    background: #ffedd5;
    color: #9a3412;
    border-color: #fb923c;
}

.expiry-timer.red {
    background: #fee2e2;
    color: #991b1b;
    border-color: #f87171;
}

.mail-control-btn {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #6d28d9;
    padding: 10px 24px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

.mail-control-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 15px 25px;
    text-align: center;
    min-width: 120px;
    color: white;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    opacity: 0.8;
}

.site-footer {
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 20px 20px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 14px;
    transition: color 0.2s ease;
    cursor: pointer;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.pagination-button {
    background: white;
    color: #4b5563;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.pagination-button:hover:not(.disabled) {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.pagination-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.notification-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100;
    cursor: pointer;
    animation: slideIn 0.3s ease-out;
    font-weight: 600;
    border: none;
}

.notification-count {
    background: white;
    color: #8b5cf6;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

@media (max-width: 768px) {
    .glass-card {
        border-radius: 24px;
        padding: 20px;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-container {
        gap: 10px;
    }
    .stat-card {
        padding: 10px 15px;
        min-width: 80px;
    }
    .stat-value {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .glass-card {
        padding: 16px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .expiry-timer {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Rate limit uyarısı için ek stil */
.rate-limit-warning {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
    padding: 10px;
    border-radius: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.rate-limit-warning i {
    color: #ef4444;
}