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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-box h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

/* QR Actions */
.qr-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.export-excel-btn, .generate-images-btn {
    background: linear-gradient(135deg, #2ed573 0%, #1e9e49 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.export-excel-btn:hover, .generate-images-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(46, 213, 115, 0.3);
}

.generate-images-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.generate-images-btn:hover {
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Request Actions */
.request-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.approve-btn, .reject-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.approve-btn {
    background: linear-gradient(135deg, #2ed573 0%, #1e9e49 100%);
    color: white;
}

.approve-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(46, 213, 115, 0.3);
}

.reject-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
}

.reject-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Vehicles Management */
.vehicles-list {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.vehicle-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.vehicle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.vehicle-header h4 {
    color: #333;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.vehicle-actions {
    display: flex;
    gap: 8px;
}

.edit-vehicle-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.edit-vehicle-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.vehicle-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.vehicle-info p {
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.4;
}

.vehicle-info strong {
    color: #333;
    font-weight: 600;
}

.vehicle-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.vehicle-status.active {
    background: #d4edda;
    color: #155724;
}

.vehicle-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.vehicle-status.suspended {
    background: #fff3cd;
    color: #856404;
}

.error {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

/* Admin Settings */
.admin-settings {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.toggle-label span {
    font-weight: 600;
    color: #333;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2ed573;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.setting-item small {
    color: #666;
    font-size: 12px;
    max-width: 200px;
}

.refresh-btn {
    background: #17a2b8;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: fit-content;
    align-self: flex-end;
    margin-bottom: 10px;
}

.refresh-btn:hover {
    background: #138496;
    transform: translateY(-1px);
}

.toggle-feedback {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.toggle-feedback.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.toggle-feedback.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.switch-page {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.switch-page a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.switch-page a:hover {
    text-decoration: underline;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.dashboard-header h1 {
    color: #333;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.welcome-text {
    color: #666;
    font-weight: 500;
}

.logout-btn {
    padding: 10px 20px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #ff3838;
}

.header-btn {
    padding: 10px 14px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.header-btn:hover {
    background: #5568d3;
}

.add-vehicle-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.add-vehicle-btn:hover {
    transform: translateY(-2px);
}

.profile-settings {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.profile-settings h2 {
    margin-bottom: 15px;
    color: #2f3542;
}

.agreement-group {
    align-items: flex-start;
    gap: 10px;
}

.agreement-group label {
    line-height: 1.5;
    font-size: 14px;
}

.agreement-group a {
    color: #667eea;
    font-weight: 600;
}

.messages-section {
    margin-top: 25px;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-modal-content {
    max-width: 780px;
    width: 95%;
    text-align: left;
}

.form-modal-content h2 {
    margin-bottom: 15px;
}

.secondary-btn {
    margin-top: 10px;
    width: 100%;
    background: #6b7280;
}

.form-note {
    margin: 6px 0 14px;
    color: #6b7280;
    font-size: 13px;
}

.request-section {
    margin-top: 25px;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.admin-panel {
    margin-top: 25px;
    background: #1f2937;
    color: #e5e7eb;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.admin-panel h2 {
    margin-bottom: 15px;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.admin-tab-btn {
    background: #374151;
    color: #fff;
    border: 1px solid #4b5563;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 600;
}

.admin-tab-btn.active {
    background: #2563eb;
    border-color: #2563eb;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.admin-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    align-items: end;
    margin-bottom: 15px;
    background: #111827;
    border: 1px solid #374151;
    border-radius: 10px;
    padding: 12px;
}

.admin-filters .form-group {
    margin-bottom: 0;
}

.admin-filters label {
    color: #cbd5e1;
    font-size: 13px;
}

.admin-filters input,
.admin-filters select {
    width: 100%;
    padding: 10px;
    border: 1px solid #4b5563;
    border-radius: 8px;
    background: #0f172a;
    color: #e2e8f0;
}

.admin-filters .submit-btn {
    margin-top: 22px;
    height: 42px;
}

.barcode-generate-section,
.barcode-list-section {
    margin-bottom: 20px;
}

.barcode-generate-section h3,
.barcode-list-section h3 {
    color: #e5e7eb;
    margin-bottom: 10px;
    font-size: 16px;
}

.barcodes-list {
    display: grid;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.barcode-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #374151;
    background: #111827;
    border-radius: 8px;
    padding: 10px 12px;
}

.barcode-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.barcode-item-code {
    color: #e5e7eb;
    font-weight: 600;
    font-size: 14px;
    font-family: monospace;
}

.barcode-item-status {
    font-size: 12px;
}

.barcode-item-status.available {
    color: #2ed573;
}

.barcode-item-status.used {
    color: #ff4757;
}

.barcode-item-plate {
    color: #9ca3af;
    font-size: 12px;
}

.barcode-delete-btn {
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.barcode-delete-btn:hover {
    background: #b91c1c;
}

.barcode-check-valid {
    color: #2ed573;
}

.barcode-check-invalid {
    color: #ff4757;
}

.request-section h2 {
    margin-bottom: 15px;
    color: #333;
}

.requests-list {
    display: grid;
    gap: 12px;
}

.request-item {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px;
    background: #fafafa;
}

.admin-panel .request-item,
.admin-panel .message-item {
    border: 1px solid #374151;
    background: #111827;
}

.admin-panel .request-item p,
.admin-panel .message-item p {
    color: #e5e7eb;
}

.request-item p {
    margin: 5px 0;
    color: #444;
    font-size: 14px;
}

.request-actions {
    margin-top: 10px;
}

.approve-btn {
    border: none;
    background: #2ed573;
    color: white;
    border-radius: 8px;
    padding: 9px 12px;
    cursor: pointer;
    font-weight: 600;
}

.approve-btn:hover {
    background: #26c765;
}

.messages-section h2 {
    margin-bottom: 15px;
    color: #333;
}

.messages-list {
    display: grid;
    gap: 12px;
}

.message-item {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px;
    background: #fafafa;
}

.message-item p {
    margin: 5px 0;
    color: #444;
    font-size: 14px;
}

.empty-messages {
    color: #777;
    font-style: italic;
}

.agreement-modal-content p {
    text-align: left;
    margin-bottom: 10px;
    color: #555;
    line-height: 1.5;
}

.add-vehicle-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.add-vehicle-form h2 {
    color: #333;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-group input {
    width: auto;
}

.checkbox-group label {
    margin-bottom: 0;
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.vehicle-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.vehicle-card:hover {
    transform: translateY(-5px);
}

.vehicle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.vehicle-header h3 {
    color: #333;
    font-size: 20px;
}

.delete-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.delete-btn:hover {
    opacity: 1;
}

.vehicle-details p {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
}

.vehicle-details strong {
    color: #333;
}

.qr-btn {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s;
}

.qr-btn:hover {
    background: #5568d3;
}

.edit-btn {
    width: 100%;
    padding: 10px;
    background: #475569;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

.edit-btn:hover {
    background: #334155;
}

/* Telegram Ayarları */
.telegram-settings {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.telegram-settings h2 {
    margin-bottom: 10px;
    color: #0088cc;
}

.telegram-info {
    color: #666;
    margin-bottom: 10px;
}

.telegram-steps {
    margin: 10px 0 15px 20px;
    color: #555;
}

.telegram-steps li {
    margin-bottom: 5px;
}

.telegram-open-btn {
    display: inline-block;
    background: #0088cc;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin: 10px 0 15px;
    transition: background 0.3s;
}

.telegram-open-btn:hover {
    background: #006699;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.modal-content h2 {
    color: #333;
    margin-bottom: 20px;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 10px;
}

.qr-code-container img {
    max-width: 200px;
}

.qr-url {
    color: #666;
    font-size: 12px;
    word-break: break-all;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.close-btn {
    padding: 12px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.close-btn:hover {
    background: #5568d3;
}

@media (max-width: 768px) {
    .auth-box {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .auth-box h1 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .dashboard-container {
        padding: 10px;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 15px;
    }

    .dashboard-header h1 {
        font-size: 20px;
    }

    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    .welcome-text {
        width: 100%;
        text-align: center;
        font-size: 14px;
    }

    .logout-btn,
    .header-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .add-vehicle-btn {
        padding: 12px;
        font-size: 15px;
    }

    .vehicles-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .vehicle-card {
        padding: 15px;
        border-radius: 12px;
    }

    .vehicle-header h3 {
        font-size: 17px;
    }

    .vehicle-details p {
        font-size: 13px;
    }

    .modal-content {
        padding: 20px 15px;
        border-radius: 15px;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .form-modal-content {
        max-width: 100%;
        width: 100%;
    }

    .admin-panel {
        padding: 15px;
        border-radius: 12px;
    }

    .admin-tabs {
        flex-wrap: wrap;
        gap: 6px;
    }

    .admin-tab-btn {
        padding: 8px 10px;
        font-size: 13px;
    }

    .admin-filters {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px;
    }

    .admin-filters .submit-btn {
        margin-top: 0;
    }

    .profile-settings,
    .telegram-settings {
        padding: 15px;
        border-radius: 10px;
    }

    .profile-settings h2,
    .telegram-settings h2 {
        font-size: 18px;
    }

    .messages-section {
        padding: 15px;
        border-radius: 12px;
    }

    .qr-code-container img {
        max-width: 150px;
    }

    .close-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .auth-container {
        padding: 10px;
    }

    .auth-box {
        padding: 20px 15px;
    }

    .auth-box h1 {
        font-size: 20px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 12px;
        font-size: 15px;
    }

    .dashboard-header {
        padding: 12px;
    }

    .dashboard-header h1 {
        font-size: 18px;
    }

    .vehicle-card {
        padding: 12px;
    }

    .vehicle-header {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .vehicle-header h3 {
        font-size: 16px;
    }

    .qr-btn,
    .edit-btn {
        padding: 10px;
        font-size: 13px;
    }

    .modal-content {
        padding: 15px 12px;
        width: 98%;
    }

    .telegram-open-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}
