/* DPP Sentinel - FINAL, COMPLETE, AND WORKING MASTER STYLESHEET */

/* --- 1. General & Body --- */
body {
    background-color: #f0f2f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container, .container-fluid {
    flex: 1;
}

a {
    color: #007bff;
    text-decoration: none;
}
a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* --- 2. Header & Footer --- */
.main-header {
    background: #343a40;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1020;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo a {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}
.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}
.main-nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 500;
}
.main-nav a:hover {
    color: white;
    text-decoration: none;
}
.main-footer {
    background: #343a40;
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}
.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}
.footer-links a {
    color: rgba(255,255,255,0.7);
}

/* --- 3. Forms & UI Elements --- */
.card {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 12px;
    margin-bottom: 30px;
}
.card-header {
    color: white;
    border-radius: 12px 12px 0 0 !important;
    padding: 15px 25px;
    border-bottom: none;
}
.card-header h4 {
    margin: 0;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
}
.card-header .icon-bg {
    background: rgba(255,255,255,0.2);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-right: 15px;
}
.card-body { padding: 30px; }
.form-group label { font-weight: 600; color: #555; margin-bottom: .5rem; }
.form-control { border-radius: 6px; border: 1px solid #d1d5db; }
.form-control:focus { border-color: #667eea; box-shadow: none; }
.btn { border-radius: 6px; font-weight: 600; }
.alert { border-radius: 8px; }
.dynamic-row { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #e9ecef; }
.dynamic-row:last-child { border-bottom: none; }
.remove-btn-wrapper { display: flex; align-items: center; justify-content: center; }

/* --- 4. Dashboard & Specific Pages --- */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
}
.hero h1 { font-size: 2.5rem; }
.hero .btn-profile {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
    margin-top: 20px;
}
.hero .btn-profile:hover { background: rgba(255,255,255,0.3); }
.action-icons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.action-icons .btn { flex-shrink: 0; }
.action-icons .icon-separator { border-left: 1px solid #ddd; margin: 0 5px; height: 24px; }
.action-icons a.icon-link { font-size: 1.4rem; text-decoration: none; color: #555; transition: transform 0.2s; }
.action-icons a.icon-link:hover { transform: scale(1.2); }
.status-active { color: #28a745; font-weight: bold; }
.status-inactive { color: #dc3545; font-weight: bold; }

/* --- 5. Admin Section --- */
.admin-content { padding: 20px; width: 100%; }
.admin-sidebar {
    width: 250px;
    flex-shrink: 0;
    background-color: #343a40;
    padding: 20px;
}
.admin-sidebar h3 { color: white; border-bottom: 1px solid #495057; padding-bottom: 10px; margin-bottom: 20px; }
.admin-sidebar ul { list-style: none; padding: 0; }
.admin-sidebar ul li a {
    color: rgba(255,255,255,0.7);
    display: block;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.admin-sidebar ul li a:hover { background-color: #495057; color: white; }
.admin-sidebar ul li a.active { background-color: #007bff; color: white; }

/* --- 6. Special UI elements from Edit Pages --- */
.image-placeholder {
    width: 150px;
    height: 150px;
    border: 2px dashed #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    background-color: #f9fafb;
    cursor: pointer;
}
.fiber-card, .cert-card, .care-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}
.fiber-card:hover, .cert-card:hover, .care-card:hover { background-color: #f8f9fa; }
.fiber-card.selected { border-color: #17a2b8; box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.25); }
.cert-card.selected { border-color: #28a745; box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.25); }
.care-card.selected { border-color: #007bff; box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25); }
.fiber-card .form-check-input, .cert-card .form-check-input, .care-card .form-check-input {
    position: absolute;
    top: 10px;
    right: 10px;
    transform: scale(1.5);
}
.fiber-details { display: none; margin-top: 1rem; }
.selected .fiber-details { display: block; }

/* --- Login / Signup Forms --- */
.form-container {
    max-width: 450px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}