/* Campus Map Styles */
.campus-map-container {
    width: 100%;
    margin-bottom: 20px;
}

/* Campus Map Header */
#campus-map-section .header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

#campus-map-section .header h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
    color: #333;
}

#campus-map-section .header .text {
    margin: 0;
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Information Section Styles */
.information-section {
    padding: 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 16px;
    color: #666;
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Info Card Styles */
.info-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
    padding: 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.notice-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.reminder-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.header-text h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.header-description {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: #666;
}

.card-badge {
    background: #f0f0f0;
    border-radius: 20px;
    padding: 6px 12px;
    min-width: 40px;
    text-align: center;
}

.badge-count {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
}

.card-body {
    padding: 0;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.info-table th {
    padding: 20px 24px;
    text-align: left;
    font-weight: 600;
    color: #333;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #dee2e6;
}

.info-table th i {
    font-size: 16px;
    margin-right: 4px;
    vertical-align: middle;
}

.info-table td {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
}

.info-table tbody tr {
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.info-table tbody tr:hover {
    background-color: #f8f9fa;
}

.info-table tbody tr:last-child td {
    border-bottom: none;
}

/* Loading State */
.loading-row {
    background: #f8f9fa;
}

.loading-row td {
    padding: 50px 24px;
    text-align: center;
    color: #999;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Column Specific Styles */
.col-priority {
    width: 50px;
    text-align: center;
}

.col-title {
    width: 35%;
}

.col-date {
    width: 20%;
}

.col-sender {
    width: 25%;
}

.col-status {
    width: 60px;
    text-align: center;
}

.col-reminder {
    width: auto;
}

/* Notices Table Specific Styles */
.info-table td.priority-cell {
    text-align: center;
    vertical-align: middle;
    padding: 20px 16px;
}

.info-table td.priority-cell img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.info-table td.title-cell {
    vertical-align: middle;
    padding: 20px 24px;
}

.info-table td.title-cell p {
    margin: 0;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.info-table td.date-cell {
    vertical-align: middle;
    padding: 20px 24px;
    color: #666;
    font-size: 13px;
}

.info-table td.sender-cell {
    vertical-align: middle;
    padding: 20px 24px;
}

.info-table td.sender-cell span {
    display: inline-block;
    padding: 6px 16px;
    background: #f0f0f0;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #555;
}

/* Reminders Table Specific Styles */
.info-table td.status-icon {
    text-align: center;
    vertical-align: middle;
    padding: 20px 16px;
}

.info-table td .bx {
    font-size: 20px;
}

.info-table td.reminder-text {
    vertical-align: middle;
    padding: 20px 24px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.info-table tr.completed td {
    color: #999;
}

.info-table tr.completed td .bx {
    color: #388E3C;
}

.info-table tr.completed td.reminder-text {
    text-decoration: line-through;
}

.info-table tr.pending td .bx {
    color: #FBC02D;
}

.info-table td.text-center {
    text-align: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px 30px;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
    display: block;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

.empty-state-row td {
    background: #f8f9fa;
    padding: 50px 30px;
}

/* Responsive design for information section */



/* Responsive design for information section */
@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    .card-header {
        padding: 20px;
    }
    
    .header-content {
        gap: 12px;
    }
    
    .icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .header-text h3 {
        font-size: 18px;
    }
    
    .header-description {
        font-size: 13px;
    }
    
    .info-table th,
    .info-table td {
        padding: 16px 14px;
        font-size: 13px;
    }
    
    .col-priority {
        width: 40px;
    }
    
    .col-title,
    .col-date,
    .col-sender {
        width: auto;
    }
    
    .loading-row td {
        padding: 40px 14px;
    }
    
    .empty-state {
        padding: 40px 20px;
    }
    
    .empty-state i {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 24px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .card-badge {
        align-self: flex-start;
    }
    
    .info-table {
        font-size: 12px;
    }
    
    .info-table th,
    .info-table td {
        padding: 14px 12px;
    }
    
    .empty-state {
        padding: 35px 15px;
    }
    
    .empty-state i {
        font-size: 32px;
    }
}

.campus-map {
    position: relative;
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #ddd;
}

.map-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.campus-title {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.campus-subtitle {
    color: white;
    font-size: 16px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#roads-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#locations-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.map-location {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: grab;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
}

.map-location:hover {
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 10;
}

.map-location:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.15);
    z-index: 1000;
}

.location-marker {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 3px solid #667eea;
}

.location-marker i {
    font-size: 20px;
    color: #667eea;
}

.location-label {
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: #333;
}

/* Location type specific colors */
.map-location[data-type="building"] .location-marker {
    border-color: #e74c3c;
}

.map-location[data-type="building"] .location-marker i {
    color: #e74c3c;
}

.map-location[data-type="facility"] .location-marker {
    border-color: #3498db;
}

.map-location[data-type="facility"] .location-marker i {
    color: #3498db;
}

.map-location[data-type="landmark"] .location-marker {
    border-color: #f39c12;
}

.map-location[data-type="landmark"] .location-marker i {
    color: #f39c12;
}

.map-location[data-type="entrance"] .location-marker {
    border-color: #27ae60;
}

.map-location[data-type="entrance"] .location-marker i {
    color: #27ae60;
}

.map-location[data-type="parking"] .location-marker {
    border-color: #9b59b6;
}

.map-location[data-type="parking"] .location-marker i {
    color: #9b59b6;
}

/* Road Lines */
.road-line {
    position: absolute;
    transform-origin: 0 50%;
    pointer-events: auto;
    border-radius: 2px;
    z-index: 1;
    background-color: #666666;
    min-height: 2px;
    cursor: grab;
    transition: z-index 0.2s ease;
}

.road-line:hover {
    z-index: 10;
}

.road-line:active {
    cursor: grabbing;
    z-index: 1000;
}

/* Road Labels */
.road-label {
    position: absolute;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: #333;
    pointer-events: none;
    z-index: 3;
    border: 1px solid #ddd;
}

/* Road Endpoints */
.road-endpoint {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #ff6b6b;
    border: 2px solid white;
    border-radius: 50%;
    cursor: grab;
    transform: translate(-50%, -50%);
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.road-endpoint:hover {
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.road-endpoint:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.5);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}

/* Temporary Road Line */
.temp-road-line {
    position: absolute;
    height: 4px;
    background-color: #ff6b6b;
    border-radius: 2px;
    pointer-events: none;
    z-index: 100;
    opacity: 0.7;
}

/* Draw Road Button */
#drawRoadBtn {
    margin-left: 10px;
    transition: all 0.3s ease;
}

#drawRoadBtn.active {
    background-color: #dc3545;
    border-color: #dc3545;
}

#drawRoadBtn.active:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Responsive design */
@media (max-width: 768px) {
    .campus-map {
        height: 400px;
    }
    
    .campus-title {
        font-size: 18px;
    }
    
    .campus-subtitle {
        font-size: 14px;
    }
    
    .location-marker {
        width: 30px;
        height: 30px;
    }
    
    .location-marker i {
        font-size: 16px;
    }
    
    .location-label {
        font-size: 10px;
    }
    
    .road-endpoint {
        width: 10px;
        height: 10px;
    }
}
