﻿/* Base Container & Layout */
.request-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    position: relative;
}

/* Header Styles */
.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

    .request-header h3 {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 600;
        color: #111827;
        color: #111827;
    }

.header-actions {
    display: flex;
    gap: 0.75rem;
}

/* Action Buttons */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 0.5rem;
}

.btn-cancel-all {
    background: #fff7ed;
    color: #9a3412;
}

    .btn-cancel-all:hover {
        background: #ffedd5;
    }

.btn-delete-all {
    background: #fef2f2;
    color: #b91c1c;
}

    .btn-delete-all:hover {
        background: #fee2e2;
    }

.btn-return {
    background: #f3f4f6;
    color: #4b5563;
}

    .btn-return:hover {
        background: #e5e7eb;
    }

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

    .search-input:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    }

.search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 0.875rem;
}

.page-size {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .page-size select {
        padding: 0.625rem 2rem 0.625rem 0.75rem;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        font-size: 0.875rem;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
        background-position: right 0.5rem center;
        background-repeat: no-repeat;
        background-size: 1.5em 1.5em;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

/* List View Styles */
.request-list {
    padding: 1rem;
}

.request-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

    .request-item:hover {
        border-color: #d1d5db;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

.request-main {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 1.5rem;
    cursor: pointer;
}

.request-info {
    flex: 1;
    min-width: 0;
}

/* Devamı gelecek... */
/* Item Typography & Details */
.serial-number {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.25rem;
}

.request-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4b5563;
    font-size: 0.875rem;
}

.task::after {
    content: "•";
    color: #9ca3af;
    margin-left: 0.5rem;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    min-width: 80px;
    text-align: center;
}

.new {
    background: #fff7ed;
    color: #9a3412;
}

.success {
    background: #f0fdf4;
    color: #166534;
}

.error {
    /*background: #fef2f2;*/
    color: #b91c1c;
}

.cancelled {
    background: #f3f4f6;
    color: #4b5563;
}

/* Action Buttons */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-cancel {
    background: #fff7ed;
    color: #9a3412;
}

    .btn-cancel:hover {
        background: #ffedd5;
    }

.btn-delete {
    background: #fef2f2;
    color: #b91c1c;
}

    .btn-delete:hover {
        background: #fee2e2;
    }

.btn-expand {
    background: #f3f4f6;
    color: #4b5563;
}

    .btn-expand:hover {
        background: #e5e7eb;
    }

/* Expandable Details */
.request-details {
    display: none;
    padding: 1rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 8px 8px;
}

.request-item.expanded .request-details {
    display: block;
    animation: slideDown 0.2s ease-out;
}

.request-item.expanded .btn-expand i {
    transform: rotate(180deg);
}

.btn-expand i {
    transition: transform 0.2s ease;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

    .detail-item.full-width {
        grid-column: 1 / -1;
    }

.detail-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
}

.detail-value {
    font-size: 0.875rem;
    color: #111827;
}

    .detail-value.with-link {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .detail-value.message {
        padding: 1rem;
        background: #ffffff;
        border-radius: 6px;
        border: 1px solid #e5e7eb;
        white-space: pre-wrap;
    }

    .detail-value.code {
        font-family: monospace;
        padding: 1rem;
        background: #f8fafc;
        border-radius: 6px;
        border: 1px solid #e5e7eb;
        overflow-x: auto;
        white-space: pre;
    }

/* Link Buttons */
.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .link-btn:hover {
        color: #1d4ed8;
        text-decoration: underline;
    }

/* Detail Card Specific */
.detail-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin: 1rem 0;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.header-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-content {
    padding: 1.5rem;
}

/* Detail Groups */
.detail-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .detail-group h4 {
        font-size: 1rem;
        font-weight: 600;
        color: #111827;
        margin: 0 0 0.5rem 0;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #e5e7eb;
    }

/* Devam edecek... */
/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 0 0 8px 8px;
}

.pagination-info {
    color: #4b5563;
    font-size: 0.875rem;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

    .page-btn:hover:not(:disabled) {
        background: #f3f4f6;
        border-color: #d1d5db;
    }

    .page-btn.active {
        background: #3b82f6;
        border-color: #3b82f6;
        color: #fff;
    }

    .page-btn:disabled {
        background: #f9fafb;
        color: #9ca3af;
        cursor: not-allowed;
    }

.page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    color: #6b7280;
    font-weight: 600;
}

/* Alert Styles */
.alert {
    margin: 1rem;
    padding: 1rem;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.2s ease-out;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #dcfce7;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fee2e2;
}

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    z-index: 10;
}

.loading-spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Modal Styles */
.modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.modal-header {
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.25rem;
}

.modal-body {
    padding: 1.25rem;
}

.modal-footer {
    border-top: 1px solid #e5e7eb;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.close {
    padding: 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
    font-size: 1.5rem;
    color: #6b7280;
    opacity: 1;
    transition: color 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
}

    .close:hover {
        color: #111827;
    }

/* Modal Buttons */
.modal .btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal .btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
}

    .modal .btn-secondary:hover {
        background: #e5e7eb;
    }

.modal .btn-danger {
    background: #fef2f2;
    color: #b91c1c;
}

    .modal .btn-danger:hover {
        background: #fee2e2;
    }

.modal .btn-warning {
    background: #fff7ed;
    color: #9a3412;
}

    .modal .btn-warning:hover {
        background: #ffedd5;
    }

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-0.5rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-1rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .request-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .header-actions {
        flex-direction: column;
    }

    .btn-action {
        width: 100%;
    }

    .filter-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .search-box {
        width: 100%;
    }

    .page-size {
        width: 100%;
        justify-content: space-between;
    }

    .request-main {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .request-info {
        order: 1;
        flex-basis: 100%;
    }

    .status {
        order: 2;
    }

    .request-actions {
        order: 3;
        margin-left: auto;
    }

    .detail-header {
        flex-direction: column;
        gap: 1rem;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pagination-container {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .pagination-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .modal-footer {
        flex-direction: column;
    }

        .modal-footer .btn {
            width: 100%;
        }

    .d-desktop {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .d-mobile {
        display: none !important;
    }
}

/* Utility Classes */
/*.d-none {
    display: none !important;
}

.me-2 {
    margin-right: 0.5rem;
}*/