/* Uyarı Sistemi CSS */

.warning-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    z-index: 9999;
    max-width: 300px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease-out;
}

.warning-notification.warning {
    background-color: #ffc107;
    color: #000;
    border-left: 4px solid #e0a800;
}

.warning-notification.error {
    background-color: #dc3545;
    border-left: 4px solid #c82333;
}

.warning-notification.success {
    background-color: #28a745;
    border-left: 4px solid #1e7e34;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Telefon kontrol alanları */
.phone-check {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.phone-check.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.phone-check.success {
    border-color: #28a745;
    background-color: #f8fff9;
}

.phone-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.phone-success {
    color: #28a745;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Form uyarıları */
.pth-form-notice {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.pth-form-notice h3 {
    margin-top: 0;
    color: #495057;
    font-size: 16px;
}

.pth-form-notice ul {
    margin: 10px 0;
    padding-left: 20px;
}

.pth-form-notice .warning {
    color: #dc3545;
    font-weight: bold;
}

.pth-form-notice .info {
    color: #007bff;
    font-weight: bold;
}

/* Admin panel uyarı tablosu */
.warning-status-active {
    color: #dc3545;
    font-weight: bold;
    background-color: #fff5f5;
    padding: 2px 8px;
    border-radius: 3px;
}

.warning-status-resolved {
    color: #28a745;
    font-weight: bold;
    background-color: #f8fff9;
    padding: 2px 8px;
    border-radius: 3px;
}

/* Uyarı istatistikleri */
.warning-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.warning-stat-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.warning-stat-card h3 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.warning-stat-card.total h3 {
    color: #0073aa;
}

.warning-stat-card.active h3 {
    color: #dc3545;
}

.warning-stat-card.resolved h3 {
    color: #28a745;
}

.warning-stat-card p {
    margin: 5px 0 0 0;
    color: #6c757d;
    font-size: 14px;
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .warning-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .warning-stats {
        grid-template-columns: 1fr;
    }
    
    .pth-form-notice {
        padding: 10px;
    }
}

/* Loading animasyonu */
.phone-check.loading {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEwIDMuNUwxMi41IDZMMTUgMy41TDEyLjUgMUwxMCAzLjVaIiBmaWxsPSIjMDA3M2FhIi8+CjxwYXRoIGQ9Ik0xNi41IDEwTDEzLjUgMTIuNUwxNi41IDE1TDE5IDEyLjVMMTYuNSAxMFoiIGZpbGw9IiMwMDczYWEiLz4KPHBhdGggZD0iTTEwIDE2LjVMNy41IDE0TDUgMTYuNUw3LjUgMTlMMTAgMTYuNVoiIGZpbGw9IiMwMDczYWEiLz4KPHBhdGggZD0iMy41IDEwTDYgNy41TDMuNSA1TDEgNy41TDMuNSAxMFoiIGZpbGw9IiMwMDczYWEiLz4KPC9zdmc+');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
} 