/* Record Show Page - Modern Professional Design with Logo Colors */

.record-show-container {
    background: linear-gradient(135deg, #f8f9fc 0%, #e8eaf6 100%);
    min-height: 100vh;
    padding: 1.5rem 0;
}

.record-header {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.record-header .breadcrumb-link {
    display: inline-flex;
    align-items: center;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.record-header .breadcrumb-link:hover {
    color: #1a365d;
    transform: translateX(-3px);
}

.record-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.modern-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.modern-btn:hover::before {
    left: 100%;
}

.btn-primary-modern {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: white;
    box-shadow: 0 3px 12px rgba(26, 54, 93, 0.4);
}

.btn-primary-modern:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.6);
}

.btn-success-modern {
    background: linear-gradient(135deg, #d69e2e 0%, #b7791f 100%);
    color: white;
    box-shadow: 0 3px 12px rgba(214, 158, 46, 0.4);
}

.btn-warning-modern {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
    box-shadow: 0 3px 12px rgba(229, 62, 62, 0.4);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent, linear-gradient(135deg, #1a365d 0%, #2c5282 100%));
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.stat-card.blue::before { --card-accent: linear-gradient(135deg, #1a365d 0%, #2c5282 100%); }
.stat-card.green::before { --card-accent: linear-gradient(135deg, #2f855a 0%, #38a169 100%); }
.stat-card.purple::before { --card-accent: linear-gradient(135deg, #d69e2e 0%, #b7791f 100%); }
.stat-card.orange::before { --card-accent: linear-gradient(135deg, #dd6b20 0%, #c05621 100%); }

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a365d;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.stat-icon.blue { background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%); }
.stat-icon.green { background: linear-gradient(135deg, #2f855a 0%, #38a169 100%); }
.stat-icon.purple { background: linear-gradient(135deg, #d69e2e 0%, #b7791f 100%); }
.stat-icon.orange { background: linear-gradient(135deg, #dd6b20 0%, #c05621 100%); }

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #6c757d;
    font-size: 0.8rem;
}

.stat-link {
    color: #1a365d;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stat-link:hover {
    transform: scale(1.1);
    color: #2c5282;
}

.page-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 1.5rem;
}

.details-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.4rem;
}

.details-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, #d69e2e 0%, #b7791f 100%);
    border-radius: 2px;
}

.detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.detail-item:hover {
    background: #e3f2fd;
    border-left-color: #1a365d;
    transform: translateX(3px);
}

.detail-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.detail-text {
    color: #1a365d;
    font-weight: 500;
    font-size: 0.9rem;
}

.section-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.tag {
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, #d69e2e 0%, #b7791f 100%);
    color: white;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.tabs-container {
    border-top: 1px solid #e9ecef;
}

.tabs-nav {
    display: flex;
    background: #f8f9fa;
}

.tab-link {
    flex: 1;
    padding: 1rem 0.75rem;
    text-align: center;
    text-decoration: none;
    color: #6c757d;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-size: 0.9rem;
}

.tab-link.active,
.tab-link:hover {
    color: #1a365d;
    background: white;
    border-bottom-color: #d69e2e;
}

.tab-content {
    padding: 1.5rem;
}

.tab-panel {
    display: block;
}

.tab-panel.hidden {
    display: none !important;
}

.content-grid {
    display: grid;
    gap: 1rem;
}

.content-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.25rem;
    border-left: 3px solid #1a365d;
    transition: all 0.3s ease;
}

.content-card:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.content-title {
    font-weight: 700;
    color: #1a365d;
    font-size: 1rem;
}

.content-date {
    color: #6c757d;
    font-size: 0.8rem;
}

.status-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.status-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pending { background: #fef5e7; color: #744210; }
.status-submitted { background: #e6fffa; color: #234e52; }
.status-approved { background: #f0fff4; color: #22543d; }
.status-locked { background: #fed7d7; color: #742a2a; }
.status-unlocked { background: #e6fffa; color: #234e52; }

.content-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.meta-info {
    display: flex;
    gap: 0.75rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #6c757d;
    font-size: 0.8rem;
}

.view-details-btn {
    color: #1a365d;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.view-details-btn:hover {
    color: #d69e2e;
    transform: translateX(-2px);
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.empty-icon {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.5rem;
    color: #adb5bd;
}

.contractors-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
}

.contractors-table th,
.contractors-table td {
    padding: 0.75rem;
    text-align: right;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.contractors-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #1a365d;
}

.contractors-table tr:hover {
    background: #f8f9fa;
}

.table-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .record-show-container {
        padding: 0.75rem 0;
    }
    
    .record-header {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .record-title {
        font-size: 1.3rem;
    }
    
    .header-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .project-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .tabs-nav {
        flex-direction: column;
    }
    
    .tab-content {
        padding: 0.75rem;
    }
    
    .content-header {
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .content-meta {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
}

/* Animation for loading states */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Floating action button for mobile */
.fab {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: white;
    border: none;
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.6);
} 