/* Boundary Setting Specific Styles */

/* Header Section - Same as Home Page */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.progress-container {
    max-width: 500px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(230, 126, 34, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-text {
    font-weight: 500;
    color: var(--secondary-color);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mining-visual {
    width: 300px;
    height: 300px;
    position: relative;
    background-color: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.mine-shaft {
    position: absolute;
    width: 80px;
    height: 200px;
    background-color: #7f8c8d;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.mine-tunnel {
    position: absolute;
    width: 150px;
    height: 60px;
    background-color: #95a5a6;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
}

.ore-vein {
    position: absolute;
    width: 40px;
    height: 100px;
    background-color: var(--primary-color);
    bottom: 40px;
    right: 60px;
    border-radius: 4px;
}

/* Global Actions Section */
.global-actions-section {
    background: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.global-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* Main Layout */
.boundary-main {
    background-color: var(--light-bg);
    padding: 40px 0;
}

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

.boundary-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

/* Sidebar */
.boundary-sidebar {
    background: var(--white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 90px;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 8px;
}

.section-nav {
    list-style: none;
}

.nav-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-step:hover {
    background-color: rgba(230, 126, 34, 0.1);
}

.nav-step.active {
    background-color: rgba(230, 126, 34, 0.15);
    border-left-color: var(--primary-color);
    color: var(--primary-dark);
    font-weight: 500;
}

.nav-step i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: var(--light-bg);
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.action-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.standards-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.standard-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--light-bg);
    border-radius: 4px;
    font-size: 0.9rem;
}

.standard-item i {
    color: var(--primary-color);
}

/* Main Content */
.boundary-content {
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.boundary-step {
    display: none;
}

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

.step-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-bg);
}

.step-header h2 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-header h2 i {
    color: var(--primary-color);
}

.step-header p {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
    padding: 25px;
    background: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.form-section h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Radio and Checkbox Styles */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-group.horizontal {
    flex-direction: row;
    gap: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 0;
}

.radio-option input {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
    transition: var(--transition);
}

.radio-option input:checked + .radio-custom {
    border-color: var(--primary-color);
}

.radio-option input:checked + .radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* FIXED CHECKBOX STYLES - Square checkboxes */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 0;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-container input:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Table Styles */
.entity-table, .location-table, .emissions-table {
    margin-top: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 500;
}

tr:hover {
    background: rgba(230, 126, 34, 0.05);
}

table input, table select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-icon {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-icon:hover {
    background: rgba(231, 76, 60, 0.1);
}

/* Process Flow */
.process-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.flow-item {
    text-align: center;
    padding: 15px;
}

.flow-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.5rem;
}

.flow-text {
    font-weight: 500;
    color: var(--secondary-color);
}

.flow-arrow {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0 10px;
}

/* File Upload */
.file-upload {
    margin-top: 10px;
}

.file-upload input {
    display: none;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.file-upload-label:hover {
    border-color: var(--primary-color);
    background: rgba(230, 126, 34, 0.05);
}

.file-upload-label i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Map Placeholder */
.location-map {
    margin-bottom: 20px;
}

.map-placeholder {
    height: 200px;
    background: var(--light-bg);
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Multi-select */
.multi-select select {
    height: 120px;
}

/* Document List */
.document-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid #ddd;
}

.document-item i {
    font-size: 2rem;
    color: #e74c3c;
}

.document-item .fa-file-excel {
    color: #1d6f42;
}

.document-item .fa-file-contract {
    color: #3498db;
}

.document-info {
    flex: 1;
}

.document-info h4 {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.document-info p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.btn-success {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-success:hover {
    background: #219653;
    transform: translateY(-2px);
}

/* Submission Actions */
.submission-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.submission-actions button {
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid var(--light-bg);
}

/* Button Styles */
.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(230, 126, 34, 0.1);
    transform: translateY(-2px);
}

/* Responsive Design */
@media screen and (max-width: 968px) {
    .boundary-layout {
        grid-template-columns: 1fr;
    }
    
    .boundary-sidebar {
        position: static;
        margin-bottom: 20px;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .process-flow {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .document-item {
        flex-direction: column;
        text-align: center;
    }
    
    .submission-actions {
        flex-direction: column;
    }
    
    .submission-actions button {
        width: 100%;
        min-width: auto;
    }
    
    .global-actions {
        flex-direction: column;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    .hero {
        padding: 40px 20px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .boundary-content {
        padding: 20px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .radio-group.horizontal {
        flex-direction: column;
        gap: 12px;
    }
    
    .step-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .step-navigation button {
        width: 100%;
        justify-content: center;
    }
    
    .global-actions button {
        width: 100%;
        justify-content: center;
    }
}