/* Buddhistan Office Directory Styles */

.buddhistan-office-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.buddhistan-office-container h2 {
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.buddhistan-office-container h3 {
    color: #34495e;
    margin: 25px 0 15px;
}

/* Form Styles */
.office-form-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 30px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Highlighted Fields */
.highlight-fields {
    background: #fff3cd;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.highlight-input {
    background: #fff;
    border: 2px solid #ffc107 !important;
    font-weight: bold;
}

/* Submit Button */
.submit-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    display: block;
    width: 100%;
    margin-top: 20px;
}

.submit-btn:hover {
    background: #2980b9;
}

/* Login Notice */
.login-notice {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 30px;
}

.login-notice a {
    color: #1565c0;
    text-decoration: underline;
}

/* Search Section */
.search-section {
    margin-bottom: 30px;
}

#office-search {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 16px;
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filters select {
    flex: 1;
    min-width: 150px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Office List */
.office-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.office-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.office-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.office-card h4 {
    margin: 0 0 10px;
    color: #2c3e50;
    font-size: 18px;
}

.office-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.office-type {
    background: #e8f4fc;
    color: #2980b9;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.office-status {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.highlight-field {
    background: #fff3cd;
    padding: 8px;
    border-radius: 4px;
    margin: 8px 0;
    border-left: 3px solid #ffc107;
}

.office-address {
    color: #666;
    line-height: 1.5;
    margin: 10px 0;
}

.office-contact {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.office-contact p {
    margin: 5px 0;
    color: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        min-width: 100%;
    }
    
    .office-list {
        grid-template-columns: 1fr;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filters select {
        min-width: 100%;
    }
}

/* Admin Styles */
.wrap .bst-office-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.wrap .bst-office-table th,
.wrap .bst-office-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.wrap .bst-office-table th {
    background: #f1f1f1;
    font-weight: bold;
}

.wrap .bst-office-table tr:nth-child(even) {
    background: #f9f9f9;
}

.wrap .bst-office-table tr:hover {
    background: #f5f5f5;
}

.action-buttons {
    display: flex;
    gap: 5px;
}

.action-buttons .button {
    padding: 5px 10px;
    font-size: 12px;
}
/* Add these styles to the existing CSS file */

/* Office Grid */
.office-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.office-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.office-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.office-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 15px;
}

.office-card-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    flex: 1;
}

.office-code {
    background: #e8f4fc;
    color: #2980b9;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

.office-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.office-type {
    background: #e8f4fc;
    color: #2980b9;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.office-status {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.highlight-field {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    color: #856404;
}

.office-location {
    color: #6c757d;
    font-size: 14px;
    margin-top: 10px;
}

.office-contact {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #495057;
}

.contact-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #21618c;
    text-decoration: underline;
}

.office-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.action-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-office {
    background: #e3f2fd;
    color: #1565c0;
}

.edit-office:hover {
    background: #bbdefb;
    color: #0d47a1;
}

.delete-office {
    background: #ffebee;
    color: #c62828;
}

.delete-office:hover {
    background: #ffcdd2;
    color: #b71c1c;
}

/* Loading and Error States */
.loading-offices,
.no-offices-found,
.error-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.loading-offices {
    background: #f8f9fa;
    border-radius: 8px;
    font-style: italic;
}

.no-offices-found {
    background: #fff3cd;
    border: 2px dashed #ffc107;
    border-radius: 8px;
}

.error-loading {
    background: #f8d7da;
    border: 2px solid #dc3545;
    border-radius: 8px;
    color: #721c24;
}

.clear-filters {
    color: #3498db;
    text-decoration: underline;
    cursor: pointer;
}

/* Filters Section */
.filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .filters {
        grid-template-columns: 1fr;
    }
    
    .office-grid {
        grid-template-columns: 1fr;
    }
}
/* Tabs */
.bst-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
    overflow: hidden;
}

.bst-tab {
    flex: 1;
    padding: 15px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
}

.bst-tab.active {
    background: #3498db;
    color: white;
}

.bst-tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

.bst-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Form Grid */
.bst-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.bst-form-group {
    margin-bottom: 20px;
}

.bst-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.bst-form-group input,
.bst-form-group select,
.bst-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.bst-form-group input:focus,
.bst-form-group select:focus,
.bst-form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.bst-highlight-section {
    background: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #ffc107;
}

.bst-highlight-section h3 {
    margin-top: 0;
    color: #856404;
}

.bst-highlight input {
    border-color: #ffc107 !important;
    background: #fff;
    font-weight: bold;
}

.bst-submit-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bst-submit-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(41, 128, 185, 0.3);
}

.bst-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Search and Filters */
.bst-search-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.bst-search-box {
    position: relative;
    margin-bottom: 20px;
}

.bst-search-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
}

.bst-search-input:focus {
    outline: none;
    border-color: #3498db;
}

.bst-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.bst-filters select {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.bst-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.bst-btn-primary {
    background: #3498db;
    color: white;
}

.bst-btn-primary:hover {
    background: #2980b9;
}

.bst-btn-secondary {
    background: #6c757d;
    color: white;
}

.bst-btn-secondary:hover {
    background: #5a6268;
}

/* View Toggle */
.bst-view-toggle {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.view-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.view-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Office Cards */
.bst-office-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.bst-office-list .bst-office-card {
    display: flex;
}

.bst-office-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #e9ecef;
}

.bst-office-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.bst-office-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 15px;
}

.bst-office-name {
    margin: 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

.bst-office-code {
    background: #e8f4fc;
    color: #2980b9;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.bst-office-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.bst-office-type {
    background: #e8f4fc;
    color: #2980b9;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.bst-office-status {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.bst-status-approved {
    background: #d4edda;
    color: #155724;
}

.bst-office-highlights {
    background: #fff3cd;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 3px solid #ffc107;
}

.bst-highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.bst-highlight-label {
    font-weight: 600;
    color: #856404;
}

.bst-office-address {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 20px;
}

.location-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.location-item {
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    color: #6c757d;
}

.bst-office-contact {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.bst-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    color: #495057;
}

.bst-contact-icon {
    font-size: 18px;
    width: 24px;
}

.bst-contact-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.bst-contact-item a:hover {
    color: #21618c;
    text-decoration: underline;
}

.bst-office-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.bst-action-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.bst-edit-btn {
    background: #e3f2fd;
    color: #1565c0;
}

.bst-edit-btn:hover {
    background: #bbdefb;
}

.bst-delete-btn {
    background: #ffebee;
    color: #c62828;
}

.bst-delete-btn:hover {
    background: #ffcdd2;
}

/* Login Required */
.bst-login-required {
    background: #e3f2fd;
    border: 2px solid #bbdefb;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
}

.login-message h3 {
    color: #1565c0;
    margin-bottom: 15px;
}

.login-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* Loading States */
.bst-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
}

.bst-no-offices,
.bst-no-results {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bst-tabs {
        flex-direction: column;
    }
    
    .bst-form-grid {
        grid-template-columns: 1fr;
    }
    
    .bst-filters {
        grid-template-columns: 1fr;
    }
    
    .bst-office-grid {
        grid-template-columns: 1fr;
    }
    
    .bst-office-list .bst-office-card {
        flex-direction: column;
    }
    
    .login-buttons {
        flex-direction: column;
    }
}