/* ShareCredentials Dashboard Styles */
/* These styles are scoped to dashboard pages only */

@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

:root {
    --primary-blue: #033a6f;
    --primary-blue-dark: #022a52;
    --success-green: #5cbb6a;
    --success-green-dark: #4aa858;
    --pink-accent: #da6a9e;
    --text-dark: #333333;
    --text-muted: #666666;
    --bg-light: #f5f5f5;
    --border-color: #ddd;
    --white: #ffffff;
    --light-gray: #C0C0C0;
}

/* ============================================
   DASHBOARD PAGES ONLY (scoped to .dashboard-page)
   ============================================ */

.dashboard-page {
    min-height: 100vh;
    background: var(--bg-light);
    font-family: 'Ubuntu', sans-serif;
}

/* Dashboard Navbar */
.dashboard-page .dashboard-navbar {
    background: var(--white) !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 0.5rem 1rem;
}

.dashboard-page .sidebar-toggle {
    color: var(--primary-blue);
    font-size: 18px;
    padding: 5px 10px;
    margin-right: 10px;
}

.dashboard-page .sidebar-toggle:hover {
    color: var(--success-green);
}

.dashboard-page .dashboard-navbar .navbar-brand {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 22px;
    padding: 0;
}

.dashboard-page .dashboard-navbar .navbar-brand i {
    color: var(--success-green);
}

.dashboard-page .dashboard-navbar .navbar-nav .nav-link {
    color: var(--text-dark);
    padding: 0.75rem 1rem;
}

.dashboard-page .dashboard-navbar .navbar-nav .nav-link:hover {
    color: var(--primary-blue);
}

.dashboard-page .dashboard-navbar .user-avatar {
    width: 35px;
    height: 35px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 8px;
    font-size: 14px;
}

.dashboard-page .dashboard-navbar .dropdown-menu {
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dashboard-page .dashboard-navbar .dropdown-item {
    padding: 0.5rem 1rem;
}

.dashboard-page .dashboard-navbar .dropdown-item i {
    margin-right: 8px;
    width: 16px;
}

.dashboard-page .notification-badge {
    position: relative;
}

.dashboard-page .notification-badge .badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #e74c3c;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 10px;
}

/* Dashboard Sidebar */
.dashboard-page .dashboard-sidebar {
    background: var(--primary-blue);
    height: calc(100vh - 56px);
    padding: 15px 0;
    position: fixed;
    top: 56px;
    left: 0;
    width: 220px;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.3s ease, transform 0.3s ease;
}

/* Custom scrollbar for sidebar */
.dashboard-page .dashboard-sidebar::-webkit-scrollbar {
    width: 6px;
}

.dashboard-page .dashboard-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.dashboard-page .dashboard-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.dashboard-page .dashboard-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Collapsed sidebar */
.dashboard-page .dashboard-sidebar.collapsed {
    width: 60px;
}

.dashboard-page .dashboard-sidebar.collapsed .nav-link span,
.dashboard-page .dashboard-sidebar.collapsed .sidebar-section-title,
.dashboard-page .dashboard-sidebar.collapsed .sidebar-section {
    display: none;
}

.dashboard-page .dashboard-sidebar.collapsed .nav-link {
    text-align: center;
    padding: 12px 0;
}

.dashboard-page .dashboard-sidebar.collapsed .nav-link .fa {
    margin-right: 0;
    font-size: 18px;
}

.dashboard-page .dashboard-sidebar .nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 25px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.dashboard-page .dashboard-sidebar .nav .nav-link:hover,
.dashboard-page .dashboard-sidebar .nav .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-left-color: var(--success-green);
}

.dashboard-page .dashboard-sidebar .nav .nav-link .fa {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    display: inline-block;
}

.dashboard-page .dashboard-sidebar .nav .nav-link span {
    transition: opacity 0.3s ease;
}

/* Sidebar Section - Collapsible */
.dashboard-page .sidebar-section {
    list-style: none;
}

.dashboard-page .sidebar-section-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 20px 8px;
    margin-top: 5px;
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin-left: 5px;
    margin-right: 5px;
}

.dashboard-page .sidebar-section-title:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.dashboard-page .sidebar-section-title .section-chevron {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.dashboard-page .sidebar-section-title .section-chevron.collapsed {
    transform: rotate(-90deg);
}

.dashboard-page .sidebar-section-items {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
    max-height: 500px;
    transition: max-height 0.3s ease, opacity 0.2s ease;
}

.dashboard-page .sidebar-section-items.collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

/* Dashboard Content */
.dashboard-page .dashboard-content {
    padding: 30px;
    padding-top: 86px;
    background: var(--bg-light);
    min-height: 100vh;
    margin-left: 220px;
    transition: margin-left 0.3s ease;
}

/* Content when sidebar is collapsed */
.dashboard-page .dashboard-content.sidebar-collapsed {
    margin-left: 60px;
}

.dashboard-page .page-header {
    margin-top: 0;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-page .page-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0;
}

/* Nav Tabs */
.dashboard-page .nav-tabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 20px;
}

.dashboard-page .nav-tabs .nav-item {
    margin-bottom: -2px;
    margin-right: 5px;
}

.dashboard-page .nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 20px;
    color: #666;
    font-weight: 500;
    background: transparent;
    border-radius: 0;
    transition: all 0.2s ease;
}

.dashboard-page .nav-tabs .nav-link:hover {
    color: var(--primary-blue);
    border-bottom-color: #ccc;
    background: transparent;
}

.dashboard-page .nav-tabs .nav-link.active {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--primary-blue);
    background: transparent;
}

/* Stats Cards */
.dashboard-page .stats-row {
    margin-bottom: 30px;
}

.dashboard-page .stat-card {
    background: var(--white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.dashboard-page .stat-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 20px;
}

.dashboard-page .stat-card .icon.blue {
    background: rgba(3, 58, 111, 0.15);
    color: var(--primary-blue);
}

.dashboard-page .stat-card .icon.green {
    background: rgba(92, 187, 106, 0.15);
    color: var(--success-green);
}

.dashboard-page .stat-card .icon.orange {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
}

.dashboard-page .stat-card .icon.red {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.dashboard-page .stat-card .info h3 {
    margin: 0 0 5px;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
}

.dashboard-page .stat-card .info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

/* Panel Styles (Bootstrap 3 compatibility) */
.dashboard-page .panel {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    background: var(--white);
    margin-bottom: 20px;
}

.dashboard-page .panel-default {
    border: none;
}

.dashboard-page .panel-heading {
    background: var(--white) !important;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
}

.dashboard-page .panel-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--primary-blue);
    margin: 0;
}

.dashboard-page .panel-title .pull-right,
.dashboard-page .panel-title .float-right {
    float: right;
}

.dashboard-page .panel-body {
    padding: 20px;
}

/* Tables */
.dashboard-page .table > thead > tr > th {
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--primary-blue);
}

.dashboard-page .table > tbody > tr > td {
    vertical-align: middle;
}

.dashboard-page .table-hover > tbody > tr:hover {
    background-color: rgba(3, 58, 111, 0.05);
}

/* Status Badges */
.dashboard-page .status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.dashboard-page .status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.dashboard-page .status-badge.in-progress {
    background: #cce5ff;
    color: #004085;
}

.dashboard-page .status-badge.submitted {
    background: #d4edda;
    color: #155724;
}

.dashboard-page .status-badge.approved {
    background: var(--success-green);
    color: var(--white);
}

.dashboard-page .status-badge.rejected {
    background: #f8d7da;
    color: #721c24;
}

/* Document Card */
.dashboard-page .document-card {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.dashboard-page .document-card .doc-icon {
    width: 50px;
    height: 50px;
    background: rgba(3, 58, 111, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-blue);
    margin-right: 15px;
}

.dashboard-page .document-card .doc-info {
    flex: 1;
}

.dashboard-page .document-card .doc-info h4 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-blue);
}

.dashboard-page .document-card .doc-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.dashboard-page .document-card .doc-actions {
    display: flex;
    gap: 10px;
}

/* Checklist Styles */
.dashboard-page .checklist-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.dashboard-page .checklist-item.matched {
    border-color: var(--success-green);
    background: rgba(92, 187, 106, 0.05);
}

.dashboard-page .checklist-item .item-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.dashboard-page .checklist-item .item-number {
    width: 30px;
    height: 30px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 15px;
}

.dashboard-page .checklist-item.matched .item-number {
    background: var(--success-green);
}

.dashboard-page .checklist-item .item-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--primary-blue);
}

.dashboard-page .checklist-item .required-badge {
    margin-left: 10px;
    font-size: 11px;
    padding: 3px 8px;
    background: #fff3cd;
    color: #856404;
    border-radius: 3px;
}

/* Notification Item */
.dashboard-page .notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    transition: background 0.3s ease;
}

.dashboard-page .notification-item:hover {
    background: rgba(3, 58, 111, 0.05);
}

.dashboard-page .notification-item.unread {
    background: rgba(3, 58, 111, 0.08);
}

.dashboard-page .notification-item .notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 16px;
}

.dashboard-page .notification-item .notif-icon.credential {
    background: rgba(3, 58, 111, 0.15);
    color: var(--primary-blue);
}

.dashboard-page .notification-item .notif-icon.response {
    background: rgba(92, 187, 106, 0.15);
    color: var(--success-green);
}

.dashboard-page .notification-item .notif-content {
    flex: 1;
}

.dashboard-page .notification-item .notif-content h5 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-blue);
}

.dashboard-page .notification-item .notif-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.dashboard-page .notification-item .notif-time {
    color: var(--text-muted);
    font-size: 12px;
}

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

.dashboard-page .empty-state .icon {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 20px;
}

.dashboard-page .empty-state h3 {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.dashboard-page .empty-state p {
    color: #999;
    margin-bottom: 20px;
}

/* File Upload */
.dashboard-page .file-upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background: var(--bg-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dashboard-page .file-upload-zone:hover {
    border-color: var(--primary-blue);
    background: rgba(3, 58, 111, 0.05);
}

.dashboard-page .file-upload-zone .icon {
    font-size: 48px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.dashboard-page .file-upload-zone p {
    margin: 0;
    color: var(--text-muted);
}

/* Buttons */
.dashboard-page .btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.dashboard-page .btn-primary:hover,
.dashboard-page .btn-primary:focus {
    background-color: var(--primary-blue-dark);
    border-color: var(--primary-blue-dark);
}

.dashboard-page .btn-success {
    background-color: var(--success-green);
    border-color: var(--success-green);
}

.dashboard-page .btn-success:hover,
.dashboard-page .btn-success:focus {
    background-color: var(--success-green-dark);
    border-color: var(--success-green-dark);
}

/* Alerts */
.dashboard-page .alert {
    border: none;
    border-radius: 5px;
}

.dashboard-page .alert-success {
    background: rgba(92, 187, 106, 0.15);
    color: #155724;
}

.dashboard-page .alert-danger {
    background: rgba(231, 76, 60, 0.15);
    color: #721c24;
}

.dashboard-page .alert-info {
    background: rgba(3, 58, 111, 0.15);
    color: #004085;
}

.dashboard-page .alert-warning {
    background: rgba(243, 156, 18, 0.15);
    color: #856404;
}

/* Bootstrap 3 helper classes */
.pull-right {
    float: right !important;
}

.pull-left {
    float: left !important;
}

/* Responsive */
@media (max-width: 767px) {
    .dashboard-page .dashboard-sidebar {
        display: none !important;
    }

    .dashboard-page .dashboard-content {
        padding: 15px;
        padding-top: 70px;
        margin-left: 0;
    }

    .dashboard-page .stat-card {
        margin-bottom: 15px;
    }
}

/* ============================================
   LOGIN/SIGNUP PAGE SPECIFIC STYLES
   ============================================ */

.login-area {
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.login-area h2 {
    color: #033a6f;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
}

.login-area .form-group {
    margin-bottom: 20px;
}

.login-area .form-group label {
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.login-area .form-control {
    height: 50px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.login-area .form-control:focus {
    border-color: #033a6f;
    box-shadow: none;
}

.login-area .submit {
    width: 100%;
    height: 50px;
    background: #5cbb6a;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.login-area .submit:hover {
    background: #4aa858;
}

/* Alert container for all pages */
.alert-container {
    margin-bottom: 20px;
}
