/* Deneme Sınavı Takip Sistemi - Public CSS */

/* Form genel stilleri */
.dst-form-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dst-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

/* Form elemanları */
.dst-form-group {
    margin-bottom: 20px;
}

.dst-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.dst-form-group input,
.dst-form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.dst-form-group input:focus,
.dst-form-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.dst-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 14px;
}

/* KVKK Section */
.dst-kvkk-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.dst-kvkk-text h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.dst-kvkk-content {
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.dst-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 10px;
}

.dst-checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.2);
}

/* Butonlar */
.dst-form-actions {
    text-align: center;
    margin-top: 30px;
}

.dst-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
    text-decoration: none;
    display: inline-block;
}

.dst-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.dst-btn-primary {
    background: #0073aa;
    color: white;
}

.dst-btn-primary:hover:not(:disabled) {
    background: #005a87;
    transform: translateY(-1px);
}

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

.dst-btn-secondary:hover:not(:disabled) {
    background: #545b62;
    transform: translateY(-1px);
}

/* Loading */
#dst-loading {
    text-align: center;
    padding: 40px;
}

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

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

/* Mesaj stilleri */
.dst-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

.dst-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

/* SMS Doğrulama */
.dst-timer {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

.dst-success-icon {
    text-align: center;
    font-size: 48px;
    margin-bottom: 20px;
}

/* Notice stilleri */
.dst-notice {
    text-align: center;
    padding: 40px 20px;
}

.dst-notice h3 {
    color: #0073aa;
    margin-bottom: 15px;
    font-size: 24px;
}

.dst-notice p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .dst-form-container {
        margin: 10px;
        padding: 20px;
    }
    
    .dst-btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .dst-form-row {
        flex-direction: column;
        gap: 10px;
    }
}

/* Accessibility */
.dst-form-group input:invalid {
    border-color: #dc3545;
}

.dst-form-group input:valid {
    border-color: #28a745;
}

/* Print styles */
@media print {
    .dst-btn,
    .dst-form-actions {
        display: none;
    }
    
    .dst-form-container {
        box-shadow: none;
        border: 1px solid #333;
    }
}