/* NotisRental - Enhanced Styling (Based on ProfitShare Theme) */
:root {
    --primary-color: #000000 !important;
    --secondary-color: #333333 !important;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 10px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #F2F1F3 !important;
    position: relative;
    min-height: 100vh;
}

/* Add Notis Studios logo as background */
body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAwIiBoZWlnaHQ9IjQwMCIgdmlld0JveD0iMCAwIDQwMCA0MDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPCEtLSBCbGFjayBiYWNrZ3JvdW5kIC0tPgogIDxyZWN0IHdpZHRoPSI0MDAiIGhlaWdodD0iNDAwIiBmaWxsPSJibGFjayIgZmlsbC1vcGFjaXR5PSIwIi8+CiAgCiAgPCEtLSBMYXJnZSBzdHlsaXplZCBOIC0tPgogIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIwMCwgMjAwKSI+CiAgICA8IS0tIE4gbGV0dGVyIHdpdGggbWV0YWxsaWMgZ3JhZGllbnQgLS0+CiAgICA8ZGVmcz4KICAgICAgPGxpbmVhckdyYWRpZW50IGlkPSJtZXRhbGxpYyIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMTAwJSI+CiAgICAgICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3R5bGU9InN0b3AtY29sb3I6I0U1RTVFNTtzdG9wLW9wYWNpdHk6MSIgLz4KICAgICAgICA8c3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JT1MgLS0+CiAgICA8dGV4dCB4PSIwIiB5PSIxOTAiIAogICAgICAgICAgZm9udC1mYW1pbHk9IkFyaWFsLCBzYW5zLXNlcmlmIiAKICAgICAgICAgIGZvbnQtc2l6ZT0iMzIiIAogICAgICAgICAgZm9udC13ZWlnaHQ9IjMwMCIKICAgICAgICAgIGZpbGw9IiNDMEMwQzAiIAogICAgICAgICAgdGV4dC1hbmNob3I9Im1pZGRsZSIgCiAgICAgICAgICBsZXR0ZXItc3BhY2luZz0iOHB4Ij5TVFVESU9TPC90ZXh0Pgo8L2c+Cjwvc3ZnPg==');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.08;
    z-index: -1;
    pointer-events: none;
}

/* Enhanced Card Styles */
.card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    box-shadow: none;
    transition: all 0.3s ease;
    overflow: hidden;
    background: white !important;
}

/* Remove gap between navbar and hero section */
.container.mt-3 {
    margin-top: 0 !important;
}

.hero-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Clickable image and title links */
.item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.item-link:hover {
    text-decoration: none;
    color: inherit;
    transform: scale(1.02);
}

.item-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.item-title-link:hover {
    color: #007bff;
    text-decoration: none;
}

.item-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.item-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.item-image img {
    transition: transform 0.3s ease;
}

.item-image:hover img {
    transform: scale(1.05);
}

.no-image-placeholder {
    transition: background-color 0.3s ease;
}

.no-image-placeholder:hover {
    background-color: #e9ecef !important;
}

.card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: white !important;
    border: none;
    padding: 20px 25px;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 25px;
    background: white !important;
}

/* Custom Form Styles */
.form-lms {
    background: white !important;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 40px;
    margin: 20px 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.form-control {
    border-radius: var(--border-radius);
    border: 2px solid #e1e5e9;
    padding: 12px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25);
    background: white;
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #6c757d;
}

/* Enhanced Button Styles */
.btn {
    border-radius: var(--border-radius);
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none !important;
    display: inline-block;
}

.btn:hover {
    text-decoration: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    color: white !important;
}

.btn-outline-light {
    border-color: white;
    color: white !important;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    border-color: white;
    color: var(--primary-color) !important;
    transform: translateY(-1px);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Enhanced Table Styles */
.table {
    background: white !important;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

.table-dark th {
    border: none;
    color: white !important;
    font-weight: 600;
    padding: 15px;
    background: transparent !important;
}

.table td {
    padding: 15px;
    vertical-align: middle;
    border-color: #f1f3f4;
}

/* Alert Enhancements */
.alert-lms {
    border: none;
    border-radius: var(--border-radius);
    padding: 15px 20px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    box-shadow: var(--box-shadow);
}

.alert-lms-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.alert-lms-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

.alert-lms i {
    margin-right: 10px;
    font-size: 1.2em;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.hero-section a {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.hero-section .btn {
    position: relative;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s infinite linear;
    pointer-events: none;
    z-index: 1;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50px, -50px); }
}

/* Custom Button Styles */
.btn-lms-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: var(--border-radius);
    padding: 12px 30px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-lms-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    color: white;
}

/* Dashboard Cards */
.dashboard-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%;
}

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

.dashboard-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

/* Item/Package Cards */
.item-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 20px;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
}

.item-content {
    padding: 20px;
}

.item-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.item-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--success-color);
    margin-bottom: 10px;
}

.item-description {
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Cart styles */
.cart-item {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background: #f8f9fa;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--success-color);
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.quantity-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Status badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-available {
    background: var(--success-color);
    color: white;
}

.status-unavailable {
    background: var(--danger-color);
    color: white;
}

.status-pending {
    background: var(--warning-color);
    color: #333;
}

/* Order history */
.order-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-bottom: 20px;
}

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

.order-number {
    font-weight: 600;
    font-size: 1.1rem;
}

.order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.order-status.confirmed {
    background: var(--success-color);
    color: white;
}

.order-status.pending {
    background: var(--warning-color);
    color: #333;
}

.order-status.cancelled {
    background: var(--danger-color);
    color: white;
}

/* Modal styling */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* File upload styling */
.file-upload-area {
    border: 2px dashed #e1e5e9;
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    background: #f8f9fa;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.05);
}

.file-upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.1);
}

/* Image gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #f8f9fa;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .remove-btn {
    opacity: 1;
}

/* Package item selection */
.item-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    background: #f8f9fa;
}

.selectable-item {
    background: white;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.selectable-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.selectable-item.selected {
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.05);
}

.selectable-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Date picker enhancements */
.date-picker-container {
    position: relative;
}

.date-picker-container .form-control {
    padding-right: 40px;
}

.date-picker-container .calendar-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .form-lms {
        padding: 20px;
        margin: 10px;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .item-selection-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .order-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    padding: 15px 20px;
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid var(--success-color);
}

.notification.error {
    border-left: 4px solid var(--danger-color);
}

/* Search and filter */
.search-filter-bar {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-bottom: 30px;
}

.search-input {
    border-radius: var(--border-radius);
    border: 2px solid #e1e5e9;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25);
}

/* Footer fixes */
footer {
    background: #000000 !important;
    color: white !important;
    margin-top: auto;
}

footer h5,
footer p {
    color: white !important;
}

/* Navbar fixes */
.navbar {
    background: #000000 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.navbar-brand {
    color: white !important;
    font-weight: bold;
}

.navbar-nav .nav-link {
    color: white !important;
}

.navbar-nav .nav-link:hover {
    color: #cccccc !important;
}

.dropdown-menu {
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dropdown-item {
    color: #cccccc !important;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

/* Ensure all text in main content is readable */
.main-content {
    background: transparent;
    color: #333;
}

.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4,
.main-content h5,
.main-content h6 {
    color: #333 !important;
}

.main-content p,
.main-content span,
.main-content div {
    color: #333;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
