/* Create Franchisee Frontend Styles */

.create-franchisee-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Filter Bar */
.cf-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.cf-filter-group {
    flex: 1;
    min-width: 150px;
}

.cf-filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 13px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cf-filter-group select,
.cf-filter-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: all 0.3s ease;
}

.cf-filter-group select:focus,
.cf-filter-group input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.cf-btn-clear {
    padding: 10px 20px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.cf-btn-clear:hover {
    background: #c82333;
}

/* Cards Container */
.cf-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.cf-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.cf-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f0f0f0;
}

.cf-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cf-card-header {
    margin-bottom: 15px;
}

.cf-card-category {
    display: inline-block;
    background: #e8f4f8;
    color: #0073aa;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.cf-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.cf-card-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
}

.cf-card-field {
    display: flex;
    flex-direction: column;
}

.cf-card-label {
    font-weight: 600;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.cf-card-value {
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.cf-card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.cf-btn-details {
    width: 100%;
    padding: 12px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cf-btn-details:hover {
    background: #005a87;
    text-decoration: none;
    color: #fff;
}

/* Pagination */
.cf-pagination {
    text-align: center;
    margin-top: 40px;
}

.cf-btn-load-more {
    padding: 12px 40px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cf-btn-load-more:hover {
    background: #005a87;
}

.cf-btn-load-more:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.cf-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cf-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .cf-filter-group {
        min-width: 100%;
    }

    .cf-btn-clear {
        width: 100%;
    }

    .cf-cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cf-card-content {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cf-card-field {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .cf-card-label {
        grid-column: 1;
    }

    .cf-card-value {
        grid-column: 2;
        text-align: right;
    }
}

@media (max-width: 480px) {
    .create-franchisee-container {
        padding: 0 10px;
    }

    .cf-filters {
        padding: 15px;
    }

    .cf-card-body {
        padding: 15px;
    }

    .cf-card-title {
        font-size: 16px;
    }

    .cf-card-content {
        font-size: 13px;
    }
}
