/* TenantOne Backoffice Styling */
:root {
    --primary-color: #6c757d;
    --admin-color: #007bff;
    --superadmin-color: #ff6b35;
}

/* Amanda Layout Elements - Backoffice Gray Theme */
/* Hamburger Menu Icon */
.am-navicon {
    color: #6c757d !important;
}

.am-navicon:hover {
    color: #5a6268 !important;
}

/* Active Tab State */
.am-sideleft-tab .nav-link.active {
    color: #6c757d !important;
    border-bottom-color: #6c757d !important;
}

.am-sideleft-tab .nav-link.active i {
    color: #6c757d !important;
}

/* Tab Icons */
.am-sideleft-tab .nav-link i {
    color: #6c757d !important;
}

.am-sideleft-tab .nav-link:hover i {
    color: #5a6268 !important;
}

/* Search Button */
.btn-orange,
#searchBtn {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.btn-orange:hover,
#searchBtn:hover {
    background-color: #5a6268 !important;
    border-color: #5a6268 !important;
}

/* Active Menu State */
.am-sideleft-menu .nav-link.active {
    background-color: rgba(108, 117, 125, 0.1) !important;
    color: #6c757d !important;
}

/* Backoffice specific layout - no sidebar */
.to-mainpanel {
    margin-left: 0 !important;
    padding-top: 80px; /* Only header height */
}

.to-pagebody {
    padding: 2rem;
}

/* Footer also needs to start from left edge */
.to-footer {
    left: 0 !important;
    margin-left: 0 !important;
}

/* Page title area (if any) should also be full width */
.to-pagetitle {
    margin-left: 0 !important;
}

/* Tiles Grid Layout */
.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .tiles-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

/* Tile Card Base Styling */
.tile-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e9ecef;
}

.tile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

/* Tile Header */
.tile-header {
    background: #f8f9fa;
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 140px;
    box-sizing: border-box;
}

.tile-logo {
    width: auto !important;
    height: 24px !important;
    object-fit: contain !important;
    margin-bottom: 1rem;
    border-radius: 8px;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    flex-shrink: 0 !important;
}

.tile-placeholder {
    width: 100px;
    height: 100px;
    background: #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2.5rem;
    color: #6c757d;
}

/* Tile Body */
.tile-body {
    padding: 1.5rem;
}

.tile-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #212529;
}

.tile-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Admin Tiles Special Styling */
.admin-tile {
    border-left: 4px solid var(--admin-color);
}

.admin-tile .tile-header {
    background: linear-gradient(135deg, var(--admin-color) 0%, #0056b3 100%);
    color: white;
}

.admin-tile .tile-title {
    color: white;
}

/* Superadmin Tiles Special Styling */
.superadmin-tile {
    border-left: 4px solid var(--superadmin-color);
}

.superadmin-tile .tile-header {
    background: linear-gradient(135deg, var(--superadmin-color) 0%, #e55a2b 100%);
    color: white;
}

.superadmin-tile .tile-title {
    color: white;
}

/* Section Headers */
.section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.section-header h4 {
    color: #495057;
    font-weight: 600;
    margin: 0;
}

.section-header i {
    color: var(--primary-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 3rem;
    color: #adb5bd;
    margin-bottom: 1rem;
}

.empty-state h5 {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #adb5bd;
    margin: 0;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 2rem;
}

.welcome-section h2 {
    color: #212529;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.welcome-section .text-muted {
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .tile-header {
        padding: 1rem;
    }
    
    .tile-body {
        padding: 1rem;
    }
    
    .tile-logo {
        width: auto !important;
        height: 20px !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .tile-placeholder {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .tile-title {
        font-size: 1.1rem;
    }
}
