.table-wrapper_create {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}


table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

thead {
    background: linear-gradient(135deg, #0F4585, #1a5c9e);
    color: white;
}

th {
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
}

tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f3f4;
}

tbody tr:hover {
    background: linear-gradient(135deg, #f0f5ff, #e8f2ff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 69, 133, 0.15);
}

tbody tr:last-child {
    border-bottom: none;
}

td {
    padding: 20px 15px;
    vertical-align: middle;
}

.equipment-name {
    font-weight: 600;
    color: #0F4585;
    font-size: 1.1em;
}

.button-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-download {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-download:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-reservation {
    background: linear-gradient(135deg, #0F4585, #1a5c9e);
    color: white;
    box-shadow: 0 4px 15px rgba(15, 69, 133, 0.3);
}

.btn-reservation:hover {
    background: linear-gradient(135deg, #1a5c9e, #0d3b6f);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 69, 133, 0.4);
}

.btn-icon {
    display: none;
}

.btn-text {
    display: inline;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    /* Limit maximum height */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    /* Enable flex layout */
    overflow: hidden;
    /* Hide overflow from modal-content */
}

.modal-header {
    background: linear-gradient(135deg, #0F4585, #1a5c9e);
    padding: 25px 30px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    /* Prevent header from shrinking */
}

.modal-header h2 {
    margin: 0;
    color: white;
    font-size: 1.5em;
    font-weight: 600;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.close:hover {
    color: #f0f0f0;
    transform: scale(1.1);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    /* Enable vertical scrolling */
    flex: 1;
    /* Allow body to grow and shrink */
    /* Custom scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: #0F4585 #f1f1f1;
}

/* Webkit scrollbar styling for better appearance */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #0F4585;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #1a5c9e;
}

.equipment-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    color: #0F4585;
    font-size: 1.1em;
}

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

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0F4585;
    box-shadow: 0 0 0 3px rgba(15, 69, 133, 0.1);
}

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

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-submit {
    background: linear-gradient(135deg, #0F4585, #1a5c9e);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #1a5c9e, #0d3b6f);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(15, 69, 133, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 500px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        /* Reduced top margin for mobile */
        max-height: 95vh;
        /* Increased max height for mobile */
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 1.3em;
    }

    .modal-body {
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-cancel,
    .btn-submit {
        width: 100%;
        margin-bottom: 10px;
    }
}


th,
td {
    padding: 15px 10px;
}

.equipment-name {
    font-size: 1em;
}

.button-container {
    flex-direction: column;
}

.btn {
    width: 100%;
    margin-bottom: 5px;
    min-width: 60px;
    padding: 12px 15px;
}

.btn-text {
    display: none;
}

.btn-icon {
    display: inline;
    font-size: 1.2em;
}


/* Animation for table rows */
tbody tr {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

tbody tr:nth-child(1) {
    animation-delay: 0.1s;
}

tbody tr:nth-child(2) {
    animation-delay: 0.2s;
}

tbody tr:nth-child(3) {
    animation-delay: 0.3s;
}

tbody tr:nth-child(4) {
    animation-delay: 0.4s;
}

tbody tr:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}