﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Job Edit Specific Styles */
.relationship-row {
    transition: all 0.3s ease;
}

    .relationship-row.dragging {
        opacity: 0.5;
        background-color: #f8f9fa;
    }

    .relationship-row.editing {
        background-color: #e3f2fd !important;
    }

.drag-handle:hover {
    color: #0d6efd !important;
}

.bulk-actions-toolbar {
    border-left: 4px solid #0d6efd;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.relationship-grid {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.relationship-tbody tr:last-child {
    border-bottom: none;
}

/* Toast notifications */
.alert.position-fixed {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Quick add form styles */
.quick-add-item {
    background-color: #f8f9fa;
    transition: all 0.2s ease;
}

    .quick-add-item:hover {
        background-color: #e9ecef;
    }

/* Table improvements */
.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.025);
}

/* Character counter styles */
.char-count {
    font-size: 0.875rem;
}

    .char-count.text-danger {
        font-weight: 600;
    }

/* Status badges */
.badge {
    font-size: 0.75em;
}

/* Drag and drop visual feedback */
.relationship-tbody tr.sortable-ghost {
    opacity: 0.4;
}

.relationship-tbody tr.sortable-chosen {
    background-color: #e3f2fd;
}

html, body {
    background-color: #f8f9fa;
    background-image: url('/images/bg_texture.jpg'); /* Update with your actual filename */
    background-repeat: repeat; /* This makes it tile */
    background-size: auto; /* Keep original size */
    background-position: 0 0;
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

body {
    background-color: transparent !important;
}

.container {
    background-color: transparent !important;
}

main {
    background-color: transparent !important;
}

/* Add to your site.css or create a new CSS section */
.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

    .btn-info:hover {
        background-color: #138496;
        border-color: #117a8b;
    }

.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Profile icon styling */
.fa-user-circle {
    color: #fff;
}

/* Button hover effects */
.btn:hover .fa-user-circle {
    color: #f8f9fa;
    transform: scale(1.1);
    transition: transform 0.2s;
}

/* Ensure dropdown menu is wide enough */
.dropdown-menu {
    min-width: 250px;
}

/* Button group spacing */
.btn-group {
    gap: 2px;
}

    .btn-group .btn {
        border-radius: 0.25rem !important;
    }

        .btn-group .btn:first-child {
            border-top-right-radius: 0 !important;
            border-bottom-right-radius: 0 !important;
        }

        .btn-group .btn:last-child {
            border-top-left-radius: 0 !important;
            border-bottom-left-radius: 0 !important;
        }

/* Registration Page Styles */
.registration-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 1rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

    .registration-hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        font-weight: 700;
    }

    .registration-hero p {
        font-size: 1.2rem;
        opacity: 0.9;
    }

.account-type-selector {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 3rem 0;
}

.account-card {
    flex: 1;
    max-width: 300px;
    padding: 2.5rem 1.5rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: white;
    border: 3px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

    .account-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    }

    .account-card i {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
        color: #667eea;
        transition: all 0.3s ease;
    }

    .account-card.selected i {
        color: white;
    }

    .account-card h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        color: #333;
        font-weight: 600;
    }

    .account-card.selected h3 {
        color: white;
    }

    .account-card p {
        color: #666;
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .account-card.selected p {
        color: rgba(255,255,255,0.9);
    }

    .account-card.selected {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-color: transparent;
        color: white;
    }

        .account-card.selected::before {
            content: '✓';
            position: absolute;
            top: 10px;
            right: 10px;
            background: white;
            color: #667eea;
            width: 25px;
            height: 25px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }

.company-selection {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid #667eea;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.company-search {
    position: relative;
}

    .company-search i {
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        color: #667eea;
        font-size: 1.2rem;
        z-index: 2;
    }

    .company-search select {
        padding-left: 50px;
        height: 55px;
        border: 2px solid #dee2e6;
        border-radius: 8px;
        font-size: 1rem;
        transition: all 0.3s ease;
    }

        .company-search select:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
        }

.company-info-hint {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
}

    .company-info-hint a {
        color: #667eea;
        text-decoration: none;
        font-weight: 500;
    }

        .company-info-hint a:hover {
            text-decoration: underline;
        }

.password-strength-container {
    margin-top: 10px;
}

.password-strength-meter {
    height: 5px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
}

.form-group {
    position: relative;
}

.form-control {
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .form-control:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
    }

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .btn-success:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
    }

/* Responsive Design */
@media (max-width: 768px) {
    .account-type-selector {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .account-card {
        max-width: 100%;
        width: 100%;
    }

    .registration-hero h1 {
        font-size: 2rem;
    }

    .registration-hero p {
        font-size: 1rem;
    }
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1060;
}

.toast {
    min-width: 250px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 10px;
    animation: slideInRight 0.3s ease;
}

    .toast.success {
        border-left: 4px solid #28a745;
    }

    .toast.error {
        border-left: 4px solid #dc3545;
    }

    .toast.info {
        border-left: 4px solid #17a2b8;
    }

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}