/* Images and Icons Styles for Careers Management Module */

/* Logo and Brand Images */
.logo img {
    border-radius: 8px;
    object-fit: cover;
}

/* Status Icons */
.status-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-icon.published {
    color: var(--success-color);
}

.status-icon.unpublished {
    color: var(--secondary-color);
}

.status-icon.draft {
    color: var(--warning-color);
}

/* Action Icons */
.action-icon {
    width: 14px;
    height: 14px;
    margin-right: 0.25rem;
}

/* Shortlist Icons */
.shortlist-icon i {
    font-size: 0.8rem;
}

/* Resume Preview Images */
.resume-preview {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* File Type Icons */
.file-type-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.file-type-pdf {
    color: #dc3545;
}

.file-type-doc {
    color: #0066cc;
}

.file-type-docx {
    color: #0066cc;
}

/* Avatar Placeholders */
.avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 0.8rem;
}

/* Company Logo Placeholder */
.company-logo {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

/* Image Upload Areas */
.image-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background-color: var(--light-gray);
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(196, 33, 42, 0.05);
}

.image-upload-area.dragover {
    border-color: var(--primary-color);
    background-color: rgba(196, 33, 42, 0.1);
}

.upload-icon {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.upload-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Image Preview Grid */
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.image-preview-item {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--white);
}

.image-preview-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.image-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-preview-item:hover .image-preview-overlay {
    opacity: 1;
}

.image-preview-actions {
    display: flex;
    gap: 0.5rem;
}

.image-preview-actions button {
    background-color: var(--white);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-preview-actions button:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Loading Spinners */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 0.5rem;
}

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

/* Empty State Images */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.9rem;
}

/* Responsive Images */
@media (max-width: 768px) {
    .image-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .image-preview-item img {
        height: 60px;
    }
    
    .company-logo,
    .avatar-placeholder {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .empty-state-icon {
        font-size: 3rem;
    }
    
    .empty-state {
        padding: 2rem 1rem;
    }
}

