/* Company Plan ver1.1 — sidebar category nav + 2col plans */

/* Group Filter */
.cp1-group-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}
.cp1-group-btn {
    display: inline-block;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #182B38;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.cp1-group-btn:hover {
    background: #fab549;
    border-color: #fab549;
    color: #182B38;
    text-decoration: none;
}
.cp1-group-btn.active {
    background: #182B38;
    border-color: #182B38;
    color: #fff;
}
.cp1-group-btn span {
    font-size: 11px;
    opacity: 0.7;
}

/* Category Sub Filter */
.cp1-cat-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}
.cp1-cat-btn {
    display: inline-block;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.cp1-cat-btn:hover {
    background: #eef1fb;
    border-color: #4e73df;
    color: #4e73df;
    text-decoration: none;
}
.cp1-cat-btn.active {
    background: #4e73df;
    border-color: #4e73df;
    color: #fff;
}
.cp1-cat-btn span {
    font-size: 10px;
    opacity: 0.7;
}

.cp1-section {
    padding: 24px 0 40px;
}

/* Header */
.cp1-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.cp1-header-logo img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    background: #fff;
}
.cp1-title {
    font-size: 20px;
    font-weight: 700;
    color: #182B38;
    margin: 0;
    line-height: 1.4;
}
.cp1-subtitle {
    font-size: 13px;
    color: #888;
    margin: 2px 0 0;
}

/* Plan List */
.cp1-plan-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.cp1-plan-card {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.cp1-plan-card:hover {
    border-color: #c0c0c0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-decoration: none;
    color: #333;
}
.cp1-plan-img {
    flex-shrink: 0;
}
.cp1-plan-img img {
    width: 100px;
    height: 66px;
    object-fit: cover;
    border-radius: 4px;
}
.cp1-plan-body {
    flex: 1;
    min-width: 0;
}
.cp1-plan-name {
    font-size: 14px;
    font-weight: 700;
    color: #182B38;
    line-height: 1.5;
    margin-bottom: 5px;
}
.cp1-plan-card:hover .cp1-plan-name {
    color: #0d6efd;
}

/* Tags */
.cp1-plan-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}
.cp1-tag {
    font-size: 10px;
    padding: 1px 7px;
    background: #f0f0f5;
    color: #666;
    border-radius: 3px;
}

/* Issue / Goal */
.cp1-plan-meta {
    margin-bottom: 4px;
}
.cp1-meta-row {
    font-size: 11px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2px;
}
.cp1-label {
    display: inline-block;
    font-size: 8px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    margin-right: 5px;
    vertical-align: middle;
}
.cp1-label-issue {
    background: #fef3e6;
    color: #e67e22;
    border: 1px solid #f5d6a8;
}
.cp1-label-goal {
    background: #e8f8ef;
    color: #27ae60;
    border: 1px solid #a3ddb8;
}

/* Training time */
.cp1-plan-time {
    font-size: 11px;
    color: #999;
}
.cp1-plan-time i {
    margin-right: 3px;
}

/* Empty */
.cp1-empty {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 14px;
    grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 768px) {
    .cp1-group-btn {
        padding: 4px 10px;
        font-size: 11px;
    }
    .cp1-header-logo img {
        width: 40px;
        height: 40px;
    }
    .cp1-title {
        font-size: 17px;
    }
    .cp1-plan-list {
        grid-template-columns: 1fr;
    }
    .cp1-plan-card {
        padding: 12px;
        gap: 10px;
    }
    .cp1-plan-img img {
        width: 80px;
        height: 53px;
    }
    .cp1-plan-name {
        font-size: 13px;
    }
}
