@import '../public/base.css';
@import './icons.css';
@import './toggle.css';
@import './departments.css';
@import './staff.css';
@import './layout.css';

/* Popup & table */
#appTeamManagerUnified .data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#appTeamManagerUnified .data-table th,
#appTeamManagerUnified .data-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#appTeamManagerUnified .data-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

#appTeamManagerUnified .temaun-thumb-department{width: 88px; height: auto; object-fit: contain;}

.add-location-btn {
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 20px;
}

/* Popup */
.swal2-popup .swal2-title{font-size: revert; line-height: normal;}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    width: 600px;
    height: 80%;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.popup-header {
    padding: 15px 20px;
    background: #f4f4f4;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    flex-shrink: 0;
}

.popup-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.popup-footer {
    padding: 15px 20px;
    background: #f4f4f4;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.popup-footer button {
    padding: 8px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.popup-footer button.save-btn {
    background-color: #28a745;
    color: white;
}

.popup-footer button.save-btn:hover {
    background-color: #218838;
}

.popup-footer button.cancel-btn {
    background-color: #dc3545;
    color: white;
}

.popup-footer button.cancel-btn:hover {
    background-color: #c82333;
}

/* Social Icons in Table */
.social-icon {
    margin-right: 8px;
    font-size: 16px;
    color: #555;
}

.social-links h4 {
    margin-bottom: 10px;
    font-weight: bold;
}

.social-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.social-item .field {
    flex: 1;
}

.add-social-button {
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.add-social-button:hover {
    background-color: #0056b3;
}

/* Other styles */
.section-label {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    display: block;
    color: #333;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group .half {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}


.field-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.field {
    flex: 1;
}

.field label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    max-width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.field select.temaun-link-type{
    width: max-content;
}

.remove-button {
    cursor: pointer;
    color: #ff0000;
}

button.temaun-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

button.temaun-btn:hover {
    background-color: #218838;
}

button.temaun-btn svg {
    margin-right: 5px;
}