/* assets/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #e30613;
    --primary-dark: #b30000;
    --secondary: #1a1a2e;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --gray: #6c757d;
    --light: #f8f9fa;
    --dark: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* Login Sayfası */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: var(--secondary);
    font-size: 24px;
    margin-bottom: 10px;
}

.login-header p {
    color: var(--gray);
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
}

.login-form input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.login-form input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(227,6,19,0.1);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    color: var(--gray);
    font-size: 14px;
}

/* Dashboard */
.dashboard {
    background: #f4f7fc;
    min-height: 100vh;
}

.top-bar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar h2 {
    color: var(--secondary);
    font-size: 20px;
}

.top-bar h2 i {
    color: var(--primary);
    margin-right: 10px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-menu span {
    color: var(--secondary);
    font-weight: 600;
}

.logout-btn {
    background: var(--light);
    color: var(--secondary);
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.logout-btn:hover {
    background: var(--primary);
    color: white;
}

.container {
    max-width: 1600px;
    margin: 30px auto;
    padding: 0 30px;
}

/* Kartlar */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
}

.stat-content h3 {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 5px;
}

.stat-content .number {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
}

/* Tablo */
.table-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow-x: auto;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-header h3 {
    color: var(--secondary);
    font-size: 18px;
}

.table-header h3 i {
    color: var(--primary);
    margin-right: 10px;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227,6,19,0.3);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    text-align: left;
    padding: 15px 10px;
    background: var(--light);
    color: var(--secondary);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td {
    padding: 15px 10px;
    border-bottom: 1px solid #e0e0e0;
    color: var(--dark);
}

table tr:hover td {
    background: #f8f9fa;
}

/* Badge'ler */
.badge {
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Alert */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--secondary);
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
}

.modal-body {
    padding: 20px;
}

/* Formlar */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--secondary);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
}

/* Mail şablonları */
.mail-templates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.template-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.template-card h4 {
    color: var(--secondary);
    margin-bottom: 10px;
}

.template-card .badge {
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
    
    table {
        font-size: 14px;
    }
}
/* ========== MEGA ABARTI ========== */

/* Tüm sayfaya hareketli arka plan */
body {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Top bar'a neon efekti */
.top-bar {
    background: rgba(0,0,0,0.2) !important;
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 0 30px rgba(255,255,255,0.3);
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(255,255,255,0.3); }
    50% { box-shadow: 0 0 50px rgba(255,255,255,0.6); }
}


/* Tablolar parlıyor */
.table-container {
    position: relative;
    overflow: hidden;
}

.table-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


/* INPUT'LARI GÖSTER - GEÇİCİ ÇÖZÜM */
.form-group input,
.form-group select,
.form-group textarea {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    padding: 10px !important;
    border: 2px solid #ddd !important;
    background: white !important;
    color: black !important;
    font-size: 14px !important;
    pointer-events: auto !important;
}

.form-group label {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: black !important;
    font-weight: 600 !important;
    margin-bottom: 5px !important;
}
/* TÜM FORM INPUT'LARINI KURTAR - GEÇİCİ ÇÖZÜM */
.proje-ekle input,
.proje-ekle select,
.proje-ekle textarea,
.teklif-ekle input,
.teklif-ekle select,
.teklif-ekle textarea,
.musteri-ekle input,
.musteri-ekle select,
.musteri-ekle textarea,
form input,
form select,
form textarea {
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    width: 100% !important;
    padding: 10px !important;
    border: 2px solid #ddd !important;
    background: white !important;
    color: black !important;
    z-index: 9999 !important;
    position: relative !important;
}

form {
    position: relative !important;
    z-index: 9998 !important;
}