/* Officer Management Styles */

.recon-officer-cards-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.recon-officer-cards-container h3 {
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 300;
}

.recon-officer-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Officer Card Styles */
.recon-officer-card {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.recon-officer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.recon-officer-card:hover::after {
    content: "Click to edit";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    opacity: 0;
    animation: fadeInEdit 0.3s ease forwards;
}

@keyframes fadeInEdit {
    from { opacity: 0; }
    to { opacity: 1; }
}

.recon-officer-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
}

.recon-officer-card-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.recon-officer-card-body {
    padding: 20px;
}

.recon-officer-info {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.recon-officer-info strong {
    min-width: 60px;
    color: #2c3e50;
    font-weight: 600;
    margin-right: 8px;
}

.recon-officer-info span {
    flex: 1;
    color: #34495e;
}

.recon-officer-info em {
    color: #95a5a6;
    font-style: italic;
}

.recon-officer-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Status colors will be injected from HCMM plugin settings */

.recon-officer-card-footer {
    background: #f8f9fa;
    padding: 10px 20px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.recon-officer-card-footer small {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Modal Styles */
.recon-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
}

.recon-modal-content {
    background-color: #fff;
    margin: 5% auto;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.recon-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recon-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.recon-modal-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.recon-modal-close:hover {
    opacity: 0.7;
}

.recon-modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

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

.recon-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.recon-form-group input,
.recon-form-group select,
.recon-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.recon-form-group input:focus,
.recon-form-group select:focus,
.recon-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.recon-form-group input[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
}

.recon-modal-footer {
    background: #f8f9fa;
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 8px 8px;
    text-align: right;
}

/* Button Styles */
.recon-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    margin-left: 10px;
}

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

.recon-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.recon-btn-secondary {
    background: #6c757d;
    color: white;
}

.recon-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .recon-officer-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .recon-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .recon-modal-body {
        padding: 20px;
    }
    
    .recon-modal-footer {
        padding: 15px 20px;
    }
    
    .recon-btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
}

/* Success/Error Messages */
.recon-message {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
    font-weight: 600;
}

.recon-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.recon-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}