/**
 * Resume Captain Template Selector Styles
 */
 
.rc-template-selector {
    position: relative;
    display: inline-block;
    margin-right: 10px;
}

.rc-template-selector-button {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    color: #555;
    font-size: 14px;
    transition: all 0.2s ease;
}

.rc-template-selector-button:hover {
    background-color: #eee;
    color: #333;
}

.rc-template-selector-button i {
    margin-right: 5px;
}

.rc-template-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 520px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    padding: 15px;
    margin-top: 10px;
}

.rc-template-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.rc-template-panel-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.rc-template-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

.rc-template-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.rc-template-item {
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.rc-template-item:hover {
    border-color: #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.rc-template-item.selected {
    border-color: #ed4e34;
    box-shadow: 0 2px 8px rgba(237, 78, 52, 0.15);
}

.rc-template-preview {
    height: 150px;
    overflow: hidden;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rc-template-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rc-template-info {
    padding: 10px;
}

.rc-template-info h4 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #333;
}

.rc-template-info p {
    margin: 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.rc-template-select {
    padding: 0 10px 10px;
    text-align: center;
}

.rc-template-select-btn {
    background: #ed4e34;
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.rc-template-select-btn:hover {
    background: #ee5f49;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .rc-template-panel {
        width: 300px;
        right: -100px;
    }
    
    .rc-template-grid {
        grid-template-columns: 1fr;
    }
}