.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: smaller;
    font-style: italic;
}

.truncate-1 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.truncate-5 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.modal-dialog.large {
    width: 80% !important;
    max-width: unset;
}

.modal-dialog.mid-large {
    width: 50% !important;
    max-width: unset;
}

@media (max-width:900px) {
    .modal-dialog.large {
        width: 100% !important;
        max-width: unset;
    }
    .modal-dialog.mid-large {
        width: 100% !important;
        max-width: unset;
    }
    .modal-dialog {
        margin: unset !important;
    }
}

#viewer_modal .btn-close {
    position: absolute;
    z-index: 999999;
    /*right: -4.5em;*/
    background: unset;
    color: white;
    border: unset;
    font-size: 27px;
    top: 0;
}

#viewer_modal .modal-dialog {
    width: 80%;
    max-width: unset;
    height: calc(90%);
    max-height: unset;
}

#viewer_modal .modal-content {
    background: black;
    border: unset;
    height: calc(100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

#viewer_modal img,
#viewer_modal video {
    max-height: calc(100%);
    max-width: calc(100%);
}

table.dataTable th,
table.dataTable td {
    padding: 5px !important;
}

.card.d-flex {
    flex-direction: row !important;
}

.card.d-flex>img {
    width: 20% !important;
}

.card.d-flex>.card-body {
    width: 80% !important;
}

span.btn {
    cursor: unset;
}

span.btn:hover {
    background: inherit;
}

#tourCarousel {
    height: 50vh !important;
}

#tourCarousel img {
    object-fit: fill;
}

div.stars {
    width: auto;
    display: inline-block
}

.mt-200 {
    margin-top: 200px
}

input.star {
    display: none
}

label.star {
    float: right;
    /* padding: 10px; */
    font-size: 30px;
    color: #333333;
    transition: all .2s
}

input.star:checked~label.star:before {
    content: '\2605';
    color: #ffc800;
    transition: all .25s
}

input.star-5:checked~label.star:before {
    color: #ffc800;
    /* text-shadow: 0 0 20px #952 */
}

input.star-1:checked~label.star:before {
    color: #F62
}

label.star:hover {
    transform: rotate(-15deg) scale(1.3)
}

label.star:before {
    content: '\2605';
    font-family: FontAwesome
}

.product-holder {
    background-color: #fff;
    height: 20vh !important;
    width: 100% !important;
}

.product-cover {
    width: 100% !important;
    height: 100% !important;
    object-fit: scale-down !important;
    object-position: center center;
    transition: all ease-in .3s;
}

a.card.product-item:hover {
    background: #ebebebb8;
}

a.card.product-item:hover .product-cover {
    transform: scale(1.2);
}

.login-page {
    overflow-x: hidden !important;
}

.btn-primary,
.page-item.active .page-link {
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%) !important;
    border-color: #e91e63 !important;
}

/* Women's Dormitory Premium Styling */
.card.card-outline {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.card.card-outline .card-header {
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%);
    border: none;
    padding: 1.25rem 1.5rem;
}

.card.card-outline .card-header .card-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

.card.card-outline .card-header .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card.card-outline .card-header .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.card.card-outline .card-body {
    padding: 1.5rem;
}

.table {
    border-radius: 12px;
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    padding: 1rem 0.75rem;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(233, 30, 99, 0.05);
    transform: scale(1.01);
}

.table tbody td {
    vertical-align: middle;
    font-size: 0.9rem;
    color: #2d3436;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.85rem 0.75rem;
}

.badge {
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-maroon {
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%) !important;
    color: #fff !important;
}

.badge-light {
    background: #f8f9fa !important;
    color: #6c757d !important;
    border: 1px solid #dee2e6 !important;
}

.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1) 0%, rgba(156, 39, 176, 0.1) 100%);
    color: #e91e63;
}

.btn-flat {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* DataTables Customization */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 2px solid rgba(233, 30, 99, 0.2);
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 0.85rem;
}

.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #e91e63;
    outline: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 8px;
    margin: 0 0.25rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%) !important;
    color: #fff !important;
    border: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(233, 30, 99, 0.1) !important;
    border: none;
}

/* Premium Form Styling */
.form-control {
    border: 2px solid rgba(233, 30, 99, 0.2);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-control:focus {
    border-color: #e91e63;
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.1);
    background: #fff;
}

.form-control::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.form-group label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #2d3436;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group-text {
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%);
    color: #fff;
    border: 2px solid rgba(233, 30, 99, 0.2);
    border-radius: 10px 0 0 10px;
    font-weight: 600;
}

.input-group .form-control {
    border-radius: 0 10px 10px 0;
}

.input-group .form-control:first-child {
    border-radius: 10px 0 0 10px;
}

.input-group .form-control:last-child {
    border-radius: 0 10px 10px 0;
}

.input-group .input-group-text + .form-control {
    border-radius: 0 10px 10px 0;
}

.btn-primary {
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%) !important;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-primary::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: all 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) !important;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 233, 123, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4);
}

.btn-default {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-default:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-2px);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e91e63'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 20px;
    padding-right: 3rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(233, 30, 99, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%);
    border-color: #e91e63;
}

.form-check-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #2d3436;
    margin-left: 0.5rem;
    cursor: pointer;
}

/* Modal Enhancements */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%);
    border: none;
    padding: 1.25rem 1.5rem;
}

.modal-header .modal-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.modal-header .close {
    color: #fff;
    font-size: 1.5rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.modal-header .close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
    background: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card.card-outline .card-header {
        padding: 1rem;
    }
    
    .card.card-outline .card-body {
        padding: 1rem;
    }
    
    .table thead th {
        font-size: 0.75rem;
        padding: 0.75rem 0.5rem;
    }
    
    .table tbody td {
        font-size: 0.8rem;
        padding: 0.75rem 0.5rem;
    }
    
    .btn-primary,
    .btn-success,
    .btn-danger {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .form-control {
        font-size: 0.85rem;
        padding: 0.6rem 0.85rem;
    }
}