/* ============================================
   Kaya Oto Admin Panel - CSS
   Profesyonel Admin Dashboard Tasarımı
============================================ */

/* ============================================
   GENEL AYARLAR
============================================ */

:root {
    --dark-bg: #1A1A1A;
    --red-accent: #E63946;
    --metallic-grey: #A9A9A9;
    --white: #FFFFFF;
    --darker-bg: #0F0F0F;
    --light-grey: #2A2A2A;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--white);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--red-accent);
    border-radius: 5px;
}

/* ============================================
   LOGIN PAGE
============================================ */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0F0F0F 0%, #1A1A1A 50%, #0F0F0F 100%);
    position: relative;
    overflow: hidden;
}

/* Animated Background */
.bg-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.2), transparent);
    animation: float 15s infinite ease-in-out;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: 15%;
    animation-delay: 5s;
}

.circle-3 {
    width: 250px;
    height: 250px;
    top: 60%;
    left: 60%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(50px, -50px) scale(1.1);
        opacity: 0.6;
    }
}

/* Login Container */
.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-box {
    background: rgba(42, 42, 42, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 100px rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.2);
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--red-accent), #c82333);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: pulse-logo 2s infinite;
}

@keyframes pulse-logo {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(230, 57, 70, 0);
    }
}

.logo-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.login-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--metallic-grey);
    font-size: 1rem;
}

/* Login Form */
.login-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--metallic-grey);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group label i {
    color: var(--red-accent);
    margin-right: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(169, 169, 169, 0.2);
    border-radius: 10px;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--red-accent);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.form-control::placeholder {
    color: rgba(169, 169, 169, 0.5);
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--metallic-grey);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--red-accent);
}

/* Remember Me */
.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    cursor: pointer;
    border: 2px solid rgba(169, 169, 169, 0.3);
    background-color: transparent;
}

.form-check-input:checked {
    background-color: var(--red-accent);
    border-color: var(--red-accent);
}

.form-check-label {
    color: var(--metallic-grey);
    cursor: pointer;
    user-select: none;
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--red-accent), #c82333);
    border: none;
    border-radius: 10px;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(230, 57, 70, 0.5);
}

.btn-login:active {
    transform: translateY(0);
}

/* Alert Message */
.alert-message {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-message.success {
    background-color: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.5);
    color: #4caf50;
}

.alert-message.error {
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #ff6b6b;
}

/* Login Footer */
.login-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(169, 169, 169, 0.1);
}

.back-link {
    color: var(--metallic-grey);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--red-accent);
}

/* ============================================
   DASHBOARD PAGE
============================================ */

.dashboard-page {
    background: linear-gradient(135deg, #0F0F0F 0%, #1A1A1A 50%, #0F0F0F 100%);
    min-height: 100vh;
}

/* Admin Header */
.admin-header {
    background: rgba(42, 42, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(230, 57, 70, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-section {
    display: flex;
    align-items: center;
    color: var(--white);
}

.logo-section i {
    font-size: 2rem;
    color: var(--red-accent);
}

.logo-section h4 {
    margin: 0;
    font-weight: 700;
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.user-info span {
    color: var(--metallic-grey);
}

/* Dashboard Container */
.dashboard-container {
    padding: 2rem 0;
}

/* Stat Cards */
.stat-card {
    background: rgba(42, 42, 42, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid rgba(169, 169, 169, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.stat-card-primary .stat-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-card-success .stat-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.stat-card-danger .stat-icon {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.stat-card-warning .stat-icon {
    background: linear-gradient(135deg, #ffc107, #ff9800);
}

.stat-details h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--white);
}

.stat-details p {
    margin: 0;
    color: var(--metallic-grey);
    font-size: 0.9rem;
}

/* Content Box */
.content-box {
    background: rgba(42, 42, 42, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(169, 169, 169, 0.1);
    overflow: hidden;
}

.box-header {
    padding: 1.5rem;
    background: rgba(230, 57, 70, 0.1);
    border-bottom: 1px solid rgba(169, 169, 169, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.box-header h5 {
    margin: 0;
    color: var(--white);
    font-weight: 600;
}

.box-header h5 i {
    color: var(--red-accent);
}

.box-body {
    padding: 2rem;
}

/* Form Styles */
.form-label {
    color: var(--metallic-grey);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-label i {
    color: var(--red-accent);
}

.dashboard-page .form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(169, 169, 169, 0.2);
    color: var(--white);
    padding: 0.75rem;
}

.dashboard-page .form-control:focus {
    border-color: var(--red-accent);
    background-color: rgba(255, 255, 255, 0.08);
}

/* Profit Display */
.profit-display {
    background: rgba(230, 57, 70, 0.05);
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
}

.calc-box {
    text-align: center;
    padding: 1rem;
}

.calc-box label {
    display: block;
    color: var(--metallic-grey);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.calc-box span {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Jobs Table */
.table-responsive {
    border-radius: 10px;
    overflow: hidden;
}

.jobs-table {
    margin-bottom: 0;
}

.jobs-table thead {
    background: rgba(230, 57, 70, 0.15);
}

.jobs-table th {
    color: var(--white);
    font-weight: 600;
    border: none;
    padding: 1rem;
    font-size: 0.9rem;
}

.jobs-table td {
    color: var(--metallic-grey);
    border-color: rgba(169, 169, 169, 0.1);
    padding: 1rem;
    vertical-align: middle;
}

.jobs-table tbody tr {
    transition: all 0.2s ease;
}

.jobs-table tbody tr:hover {
    background-color: rgba(230, 57, 70, 0.05);
}

.profit-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.profit-positive {
    background: rgba(40, 167, 69, 0.2);
    color: #4caf50;
}

.profit-negative {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
}

/* Filter Section */
.filter-section {
    background: rgba(230, 57, 70, 0.05);
    padding: 1rem;
    border-radius: 10px;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--red-accent), #c82333);
    border: none;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
}

.btn-secondary {
    background: rgba(169, 169, 169, 0.2);
    border: 1px solid rgba(169, 169, 169, 0.3);
    color: var(--white);
}

.btn-outline-secondary {
    border-color: rgba(169, 169, 169, 0.3);
    color: var(--metallic-grey);
}

.btn-outline-secondary:hover {
    background: rgba(169, 169, 169, 0.1);
    color: var(--white);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Action Buttons */
.btn-action {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-edit {
    background: rgba(23, 162, 184, 0.2);
    color: #17a2b8;
}

.btn-edit:hover {
    background: rgba(23, 162, 184, 0.4);
}

.btn-delete {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.btn-delete:hover {
    background: rgba(220, 53, 69, 0.4);
}

/* Modal */
.modal-content {
    background: rgba(42, 42, 42, 0.98);
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: 15px;
    color: var(--white);
}

.modal-header {
    border-bottom-color: rgba(169, 169, 169, 0.1);
}

.modal-footer {
    border-top-color: rgba(169, 169, 169, 0.1);
}

.btn-close {
    filter: invert(1);
}

/* Toast */
.toast {
    background: rgba(42, 42, 42, 0.98);
    border: 1px solid rgba(230, 57, 70, 0.2);
    color: var(--white);
}

.toast-header {
    background: rgba(230, 57, 70, 0.1);
    border-bottom-color: rgba(169, 169, 169, 0.1);
    color: var(--white);
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */

@media (max-width: 768px) {
    .login-box {
        padding: 2rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .box-body {
        padding: 1rem;
    }
    
    .user-info {
        margin-top: 1rem;
        justify-content: center;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .jobs-table th,
    .jobs-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 576px) {
    .login-box {
        padding: 1.5rem;
    }
    
    .logo-icon {
        width: 60px;
        height: 60px;
    }
    
    .logo-icon i {
        font-size: 2rem;
    }
    
    .stat-details h3 {
        font-size: 1.5rem;
    }
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

