/* ==========================================
   11 HOCKINGS STREET - DARK THEME
   Modern Dark Dashboard with Pink Accents
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Theme Colors */
    --bg-primary: #0a0e27;
    --bg-secondary: #141b3d;
    --bg-card: #1a2347;
    --bg-hover: #222b52;

    /* Accent Colors */
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --primary-glow: rgba(0, 212, 255, 0.3);

    --secondary: #ff3366;
    --secondary-glow: rgba(255, 51, 102, 0.3);

    --accent: #ffaa00;
    --accent-glow: rgba(255, 170, 0, 0.3);

    --success: #00ff88;
    --success-glow: rgba(0, 255, 136, 0.3);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;

    /* Borders & Shadows */
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --glow-primary: 0 0 20px var(--primary-glow);
    --glow-secondary: 0 0 20px var(--secondary-glow);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at top left, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(255, 51, 102, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at top right, rgba(255, 170, 0, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Screens */
.screen {
    display: none;
    animation: fadeIn 0.5s ease;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hidden {
    display: none !important;
}

/* ==========================================
   LOGIN SCREEN
   ========================================== */

#login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.login-card h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
    text-shadow: 0 0 30px var(--primary-glow);
}

.login-card h2 {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    text-align: center;
}

.form-section {
    margin-bottom: 1.5rem;
}

.form-section p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

input[type="tel"],
input[type="text"] {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    color: var(--text-primary);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow), 0 0 30px var(--secondary-glow);
}

.btn-primary:disabled {
    background: var(--bg-hover);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    margin-top: 0.75rem;
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.message {
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    margin-top: 1rem;
    font-weight: 500;
    border: 1px solid;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.success {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success);
    border-color: var(--success);
    box-shadow: 0 0 20px var(--success-glow);
}

.message.error {
    background: rgba(255, 51, 102, 0.1);
    color: var(--secondary);
    border-color: var(--secondary);
    box-shadow: 0 0 20px var(--secondary-glow);
}

/* ==========================================
   DASHBOARD HEADER
   ========================================== */

.dashboard-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    gap: 1.5rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    text-shadow: 0 0 20px var(--primary-glow);
}

.logo p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

#user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

#user-role {
    font-size: 0.75rem;
    color: var(--primary);
}

/* ==========================================
   NAVIGATION TABS
   ========================================== */

.tabs {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.tabs .container {
    display: flex;
    gap: 0.5rem;
    padding-top: 0;
    padding-bottom: 0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

/* ==========================================
   MAIN DASHBOARD CONTENT
   ========================================== */

.dashboard-content {
    padding: 3rem 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    animation: slideInCard 0.5s ease backwards;
}

@keyframes slideInCard {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.stats-grid .stat-card:nth-child(1) { animation-delay: 0.1s; }
.stats-grid .stat-card:nth-child(2) { animation-delay: 0.2s; }
.stats-grid .stat-card:nth-child(3) { animation-delay: 0.3s; }
.stats-grid .stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card:hover {
    box-shadow: var(--shadow-lg), var(--glow-primary);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.stat-icon {
    font-size: 2.5rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    flex-shrink: 0;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 0 20px var(--primary-glow);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Section */
.section {
    margin-bottom: 3rem;
}

.section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px var(--primary-glow);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    margin-bottom: 0;
}

/* Project Card */
.project-card,
.contractor-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.project-card:hover,
.contractor-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), 0 0 30px var(--primary-glow);
}

.project-card h3,
.contractor-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.project-info,
.contractor-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.info-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Search Box */
.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    max-width: 320px;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Filter Chips */
.filter-chips {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.chip {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-hover);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.chip.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

/* Suppliers Grid */
.suppliers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.supplier-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.supplier-card:hover {
    box-shadow: var(--shadow-lg), 0 0 20px var(--primary-glow);
    transform: translateY(-4px);
    border-color: var(--primary);
}

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

.supplier-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.badge.head {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 0 15px var(--primary-glow);
}

.badge.contractor {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.badge.supplier {
    background: rgba(255, 170, 0, 0.2);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.supplier-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-row {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Documents Grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.document-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.document-card:hover {
    box-shadow: var(--shadow-lg), 0 0 20px var(--secondary-glow);
    transform: translateY(-4px);
    border-color: var(--secondary);
}

.document-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.document-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.document-meta {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.document-meta div {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    box-shadow: 0 0 10px var(--primary-glow);
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -1.5rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    transition: all 0.3s ease;
}

.timeline-marker.completed {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.timeline-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.timeline-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ==========================================
   SMS MESSAGING STYLES
   ========================================== */

.messages-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.message-composer,
.message-history {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.composer-header {
    margin-bottom: 1.5rem;
}

.composer-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem;
}

.character-count {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.character-count span {
    font-weight: 600;
    color: var(--primary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}

.message-history h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 600px;
    overflow-y: auto;
}

.history-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.history-item:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

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

.history-recipients {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.history-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.history-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-hover);
    border-radius: 8px;
}

.history-status {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Scrollbar for history list */
.history-list::-webkit-scrollbar {
    width: 8px;
}

.history-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.history-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.history-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Loading State */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ==========================================
   MODAL STYLES
   ========================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(8px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--secondary);
}

.modal-body {
    padding: 2rem;
}

.modal-step {
    display: none;
}

.modal-step.active {
    display: block;
}

.modal-step h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.modal-step h4 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 1.5rem 0 1rem 0;
}

.contact-result {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
}

.contact-result.success {
    border-color: var(--success);
}

.contact-result.error {
    border-color: var(--secondary);
}

.selected-contacts {
    margin: 2rem 0;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.selected-contacts h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

#selected-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.selected-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-hover);
    border-radius: 8px;
}

.selected-item-info {
    display: flex;
    flex-direction: column;
}

.selected-item-name {
    font-weight: 600;
    color: var(--text-primary);
}

.selected-item-phone {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.selected-item-remove {
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: transform 0.2s ease;
}

.selected-item-remove:hover {
    transform: scale(1.2);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-menu {
        width: 100%;
        justify-content: space-between;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-box input {
        max-width: 100%;
    }

    .project-info,
    .contractor-info {
        grid-template-columns: 1fr;
    }

    .suppliers-grid,
    .documents-grid {
        grid-template-columns: 1fr;
    }

    .messages-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.125rem;
    }

    .logo p {
        font-size: 0.75rem;
    }

    .stat-icon {
        font-size: 2rem;
        width: 56px;
        height: 56px;
    }

    .stat-info h3 {
        font-size: 1.5rem;
    }
}

/* AI Chat Styles */
.ai-chat-container {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.chat-messages {
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.chat-message {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
}

.chat-message.user {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(255, 51, 102, 0.2));
    margin-left: 20%;
    text-align: right;
}

.chat-message.assistant {
    background: rgba(255, 255, 255, 0.05);
    margin-right: 20%;
}

.chat-message .message-text {
    white-space: pre-wrap;
    line-height: 1.6;
}

.chat-input-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

#chat-input {
    flex: 1;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
}

#chat-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

#chat-send-btn {
    padding: 1rem 2rem;
    white-space: nowrap;
}

.chat-suggestions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.suggestion-chip {
    padding: 0.5rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.suggestion-chip:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.chat-loading {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
}

.chat-loading span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: bounce 1.4s infinite ease-in-out both;
}

.chat-loading span:nth-child(1) {
    animation-delay: -0.32s;
}

.chat-loading span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* TOAST NOTIFICATIONS */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 400px;
    word-wrap: break-word;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid var(--success);
    color: var(--success);
}

.toast-error {
    border-left: 4px solid var(--error);
    color: var(--error);
}

.toast-warning {
    border-left: 4px solid #ff9800;
    color: #ff9800;
}

@media (max-width: 768px) {
    .toast-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}
