/* Kurban Takip Sistemi - CSS */

:root {
    --primary: #059669;
    --primary-dark: #047857;
    --amber: #f59e0b;
    --amber-light: #fef3c7;
    --red: #ef4444;
    --red-light: #fee2e2;
    --blue: #3b82f6;
    --blue-light: #dbeafe;
    --emerald: #10b981;
    --emerald-light: #d1fae5;
    --purple: #8b5cf6;
    --purple-light: #ede9fe;
    --orange: #f97316;
    --orange-light: #ffedd5;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--gray-50) 0%, #ecfdf5 100%);
    min-height: 100vh;
    color: var(--gray-800);
    line-height: 1.5;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #065f46 0%, #047857 50%, #059669 100%);
    color: white;
    padding: 20px 0;
    box-shadow: var(--shadow-lg);
}

.header-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.header-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.header-title p {
    font-size: 0.875rem;
    opacity: 0.8;
}

.search-form {
    flex: 1;
    max-width: 400px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-form i {
    position: absolute;
    left: 16px;
    color: rgba(255,255,255,0.6);
}

.search-form input {
    width: 100%;
    padding: 12px 100px 12px 44px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
}

.search-form input::placeholder {
    color: rgba(255,255,255,0.6);
}

.search-form input:focus {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
}

.search-form button {
    position: absolute;
    right: 6px;
    padding: 8px 16px;
    background: white;
    color: var(--primary-dark);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.search-form button:hover {
    background: var(--gray-100);
}

.clock-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.15);
    padding: 10px 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.2);
}

.clock-widget i {
    font-size: 1.25rem;
    opacity: 0.8;
}

.clock-time {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: monospace;
}

.clock-date {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    margin-top: 20px;
    display: flex;
    gap: 16px;
}

.info-icon {
    width: 44px;
    height: 44px;
    background: #a7f3d0;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-content h2 {
    font-size: 1.125rem;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.info-content p {
    font-size: 0.875rem;
    color: #047857;
    line-height: 1.6;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-bekliyor { border-color: #fcd34d; background: var(--amber-light); }
.stat-bekliyor .stat-icon { background: #fef3c7; color: #b45309; }

.stat-kesildi { border-color: #fca5a5; background: var(--red-light); }
.stat-kesildi .stat-icon { background: #fee2e2; color: #dc2626; }

.stat-masada { border-color: #93c5fd; background: var(--blue-light); }
.stat-masada .stat-icon { background: #dbeafe; color: #2563eb; }

.stat-teslim { border-color: #6ee7b7; background: var(--emerald-light); }
.stat-teslim .stat-icon { background: #d1fae5; color: #059669; }

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-800);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-600);
}

.stat-label span {
    color: var(--gray-400);
}

/* Columns Grid */
.columns-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.status-column {
    background: linear-gradient(to bottom, var(--gray-50), white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.column-header {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.column-bekliyor .column-header { background: linear-gradient(135deg, #f59e0b, #d97706); }
.column-kesildi .column-header { background: linear-gradient(135deg, #ef4444, #dc2626); }
.column-masada .column-header { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.column-teslim .column-header { background: linear-gradient(135deg, #10b981, #059669); }

.column-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1rem;
}

.column-count {
    background: rgba(255,255,255,0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
}

.column-cards {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: calc(100vh - 450px);
    min-height: 200px;
    overflow-y: auto;
}

.column-cards::-webkit-scrollbar {
    width: 4px;
}

.column-cards::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-400);
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 8px;
}

/* Kurban Card */
.kurban-card {
    background: white;
    border-radius: var(--radius);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--gray-200);
}

.kurban-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.column-bekliyor .kurban-card:hover { border-color: #fcd34d; background: #fffbeb; }
.column-kesildi .kurban-card:hover { border-color: #fca5a5; background: #fef2f2; }
.column-masada .kurban-card:hover { border-color: #93c5fd; background: #eff6ff; }
.column-teslim .kurban-card:hover { border-color: #6ee7b7; background: #ecfdf5; }

.card-number {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.column-bekliyor .card-number { background: var(--amber-light); color: #b45309; }
.column-kesildi .card-number { background: var(--red-light); color: #dc2626; }
.column-masada .card-number { background: var(--blue-light); color: #2563eb; }
.column-teslim .card-number { background: var(--emerald-light); color: #059669; }

.card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-600);
}

.card-masa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2563eb;
    background: var(--blue-light);
    padding: 3px 8px;
    border-radius: 6px;
    width: fit-content;
}

.card-masa-durum {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 6px;
    width: fit-content;
}

.durum-parcalaniyor {
    background: var(--purple-light);
    color: var(--purple);
}

.durum-teslimat {
    background: var(--orange-light);
    color: var(--orange);
}

.card-time {
    font-size: 0.65rem;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Map Section */
.map-section {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    margin-bottom: 24px;
}

.map-header {
    background: linear-gradient(135deg, var(--gray-800), var(--gray-900));
    color: white;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.map-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-title h3 {
    font-size: 1rem;
    font-weight: 600;
}

.map-title p {
    font-size: 0.75rem;
    opacity: 0.7;
}

.map-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 20px;
    padding: 20px 24px;
}

.map-frame {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    height: 220px;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    gap: 12px;
    border: 1px solid var(--gray-100);
}

.info-item-icon {
    width: 32px;
    height: 32px;
    background: var(--emerald-light);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-item-icon.info-phone {
    background: var(--blue-light);
    color: var(--blue);
}

.info-item-content strong {
    font-size: 0.875rem;
    color: var(--gray-800);
}

.info-item-content p {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 2px;
    line-height: 1.5;
}

.info-item-content a {
    color: var(--gray-500);
    text-decoration: none;
}

.info-item-content a:hover {
    color: var(--primary);
}

.btn-directions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), #047857);
    color: white;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.btn-directions:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
    background: var(--gray-800);
    color: var(--gray-400);
    text-align: center;
    padding: 20px;
    font-size: 0.875rem;
}

/* Admin FAB */
.admin-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), #047857);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all 0.2s;
    z-index: 100;
}

.admin-fab:hover {
    transform: scale(1.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), #047857);
    color: white;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255,255,255,0.3);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
}

/* Modal Detail */
.detail-number {
    width: 80px;
    height: 80px;
    background: var(--emerald-light);
    color: var(--primary-dark);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 12px;
}

.detail-label {
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.detail-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--emerald-light);
    color: var(--primary-dark);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    margin: 0 auto 20px;
}

.detail-masa-info {
    background: var(--blue-light);
    border: 1px solid #93c5fd;
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-masa-info i {
    font-size: 1.5rem;
    color: var(--blue);
}

.detail-masa-info strong {
    color: #1e40af;
}

.detail-masa-info span {
    font-size: 0.875rem;
    color: var(--blue);
}

/* Steps */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.step-item.completed {
    background: white;
}

.step-item.current {
    background: var(--emerald-light);
    border: 2px solid #6ee7b7;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    color: var(--gray-400);
}

.step-item.completed .step-icon {
    background: var(--emerald-light);
    color: var(--primary);
}

.step-item.current .step-icon {
    background: var(--primary);
    color: white;
}

.step-info {
    flex: 1;
}

.step-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-400);
}

.step-item.completed .step-label,
.step-item.current .step-label {
    color: var(--gray-800);
}

.step-time {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 2px;
}

.step-check {
    color: #6ee7b7;
    font-size: 1.25rem;
}

.step-item.current .step-check {
    color: var(--primary);
}

/* Not Found */
.not-found {
    text-align: center;
    padding: 20px;
}

.not-found i {
    font-size: 4rem;
    color: var(--red);
    margin-bottom: 16px;
}

.not-found h4 {
    font-size: 1.25rem;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.not-found p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.not-found .searched-no {
    color: var(--red);
    font-weight: 600;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #047857);
    color: white;
}

.btn-primary:hover {
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    width: 100%;
    justify-content: center;
}

.btn-secondary:hover {
    background: var(--gray-200);
}

/* Responsive */
@media (max-width: 1024px) {
    .columns-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-form {
        max-width: 100%;
    }
    
    .clock-widget {
        justify-content: center;
    }
    
    .columns-grid {
        grid-template-columns: 1fr;
    }
    
    .map-content {
        grid-template-columns: 1fr;
    }
    
    .info-box {
        flex-direction: column;
        text-align: center;
    }
    
    .info-icon {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}
