:root {
    --stannah-red: #c41230;
    --stannah-dark-red: #a00f28;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
}

.stannah-portal {
    min-height: 100vh;
}

.stannah-header {
    background: linear-gradient(135deg, var(--stannah-red) 0%, var(--stannah-dark-red) 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 300;
    margin-top: 0.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-logout {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}

.stats-bar {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin: 2rem 0;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--stannah-red);
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.search-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.search-box {
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--stannah-red);
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: var(--stannah-red);
    background: #fff5f7;
}

.filter-btn.active {
    background: var(--stannah-red);
    color: white;
    border-color: var(--stannah-red);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(196, 18, 48, 0.15);
}

.category-header, .product-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.category-icon, .product-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--stannah-red) 0%, var(--stannah-dark-red) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.category-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
}

.category-count {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.3rem;
}

.document-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.document-item {
    padding: 1rem;
    margin-bottom: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid var(--stannah-red);
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.document-item:hover {
    background: #fff5f7;
    transform: translateX(5px);
}

.document-info {
    flex: 1;
}

.document-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.3rem;
}

.document-meta {
    font-size: 0.85rem;
    color: #666;
}

.document-icon {
    width: 40px;
    height: 40px;
    background: var(--stannah-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s;
}

.document-icon:hover {
    background: var(--stannah-dark-red);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-tabs {
        justify-content: center;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}