/* A to Z Tool Rental - Custom Styles
   Bootstrap 5 provides the base styling.
   This file contains minimal overrides and custom components.
*/

/* Custom Properties */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

/* Body */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0b5ed7 100%);
    color: white;
    padding: 4rem 0;
}

.hero-section h1 {
    font-weight: 700;
    font-size: 2.5rem;
}

/* Equipment Cards */
.equipment-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.equipment-card .card-img-top,
.equipment-img {
    max-width: 300px;
    max-height: 200px;
    object-fit: cover;
}

.card .equipment-img {
    width: 100%;
    max-width: 300px;
    max-height: 200px;
    object-fit: cover;
}

/* Category Cards */
.category-card {
    transition: transform 0.2s;
    overflow: hidden;
}

.category-card:hover {
    transform: scale(1.02);
}

.category-card .card-img-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
}

/* Price Display */
.price-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-color);
}

.price-label {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

/* Status Badges */
.status-available {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-rented {
    background-color: #cfe2ff;
    color: #084298;
}

.status-reserved {
    background-color: #fff3cd;
    color: #664d03;
}

.status-maintenance {
    background-color: #f8d7da;
    color: #842029;
}

.status-retired {
    background-color: #e2e3e5;
    color: #41464b;
}

/* Search Box */
.search-box {
    max-width: 600px;
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

/* Footer Links */
.text-light-50 {
    color: rgba(255, 255, 255, 0.6) !important;
}

.text-light-50:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Admin Sidebar */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    background-color: #212529;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-sidebar .nav-link i {
    width: 24px;
}

/* Stats Cards */
.stats-card {
    border-left: 4px solid var(--primary-color);
}

.stats-card.success {
    border-left-color: var(--success-color);
}

.stats-card.warning {
    border-left-color: var(--warning-color);
}

.stats-card.danger {
    border-left-color: var(--danger-color);
}

/* Pricing Table */
.pricing-table th,
.pricing-table td {
    vertical-align: middle;
}

/* Custom Buttons */
.btn-rent {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.btn-rent:hover {
    background-color: #157347;
    border-color: #146c43;
    color: white;
}

/* Image Placeholder */
.img-placeholder {
    width: 100%;
    height: 200px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

/* Standardized Image Sizes */
.img-standard {
    width: 300px;
    height: 200px;
    object-fit: cover;
}

.img-thumbnail-sm {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.img-thumbnail-md {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.img-thumbnail-lg {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.img-preview {
    max-width: 300px;
    max-height: 200px;
    object-fit: contain;
}

/* Photo Gallery Thumbnails */
.photo-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
}

.photo-thumb:hover {
    opacity: 0.9;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    .navbar,
    footer {
        display: none !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }
}
