/* ============================================
   DW Manager - Common Styles
   ============================================ */

/* Reset body/html for proper footer positioning */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

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

/* Account for fixed navbar height */
body {
    padding-top: 56px; /* Bootstrap navbar default height */
}

/* Page Title with Accent Line */
.page-title {
    position: relative;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.page-title::after {
    content: '';
    display: block;
    position: absolute;
    width: 60px;
    height: 4px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
}

/* Centered variant for empty states */
.empty-state .page-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* ============================================
   Modal Styling
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
}

.modal-body {
    padding: 30px;
}

.close {
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: var(--text-primary);
}

/* ============================================
   Button Overrides
   ============================================ */

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

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
    color: #fff;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* ============================================
   Status Badges
   ============================================ */

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    display: inline-block;
}

.status-success {
    background: #d1e7dd;
    color: #0f5132;
}

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

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

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .actions {
        flex-direction: column;
    }
    
    .actions .btn {
        width: 100%;
    }
}
