/* CoParently Protokoll-Assistent Styles */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

.cpp-wizard-container, .cpp-profile-container, .cpp-auth-container {
    font-family: 'Plus Jakarta Sans', sans-serif;
    max-width: 760px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(48, 217, 232, 0.08);
    border: 1px solid #f0f7f8;
    padding: 40px;
    box-sizing: border-box;
}

/* Header & Progress Bar */
.cpp-wizard-header, .cpp-profile-header, .cpp-auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.cpp-wizard-title, .cpp-profile-title, .cpp-auth-title {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    color: #111718;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.cpp-wizard-subtitle, .cpp-profile-subtitle, .cpp-auth-subtitle {
    font-size: 15px;
    color: #5c6f71;
    margin: 0;
}

.cpp-progress-bar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 30px auto 40px auto;
    max-width: 500px;
}

.cpp-progress-bar-line {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    background: #eef5f6;
    width: 100%;
    z-index: 1;
}

.cpp-progress-bar-fill {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    background: #30d9e8;
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.cpp-progress-step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #eef5f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #9aa5a6;
    z-index: 3;
    transition: all 0.3s ease;
}

.cpp-progress-step.active {
    border-color: #30d9e8;
    color: #111718;
    box-shadow: 0 0 12px rgba(48, 217, 232, 0.25);
}

.cpp-progress-step.completed {
    background: #30d9e8;
    border-color: #30d9e8;
    color: #ffffff;
}

/* Step Layouts */
.cpp-wizard-step {
    display: none;
    animation: cppFadeIn 0.4s ease;
}

.cpp-wizard-step.active {
    display: block;
}

@keyframes cppFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Grid Category Selection */
.cpp-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .cpp-category-grid {
        grid-template-columns: 1fr;
    }
}

.cpp-category-card {
    background: #ffffff;
    border: 2px solid #eef5f6;
    border-radius: 18px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.cpp-category-card:hover {
    border-color: #30d9e8;
    background: #fdfefe;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(48, 217, 232, 0.05);
}

.cpp-category-card.selected {
    border-color: #30d9e8;
    background: #f4fdfe;
    box-shadow: 0 8px 24px rgba(48, 217, 232, 0.1);
}

.cpp-category-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f4fdfe;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpp-category-card.selected .cpp-category-icon {
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(48, 217, 232, 0.15);
}

.cpp-category-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #111718;
    margin: 0;
}

.cpp-category-desc {
    font-size: 13px;
    color: #5c6f71;
    margin: 0;
    line-height: 1.5;
}

/* Forms & Inputs */
.cpp-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.cpp-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111718;
    margin-bottom: 8px;
    text-align: left;
}

.cpp-form-input {
    width: 100%;
    border: 1.5px solid #a5acad; /* Darker border line for maximum visibility */
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    box-sizing: border-box;
    font-family: inherit;
    color: #3c4546;
    background: #ffffff;
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0,0,0,0.05); /* Added drop shadow */
}

.cpp-form-input::placeholder {
    color: #a5acad;
    opacity: 0.8;
}

.cpp-form-input:focus {
    outline: none;
    border-color: #30d9e8;
    box-shadow: 0 0 0 4px rgba(48, 217, 232, 0.12), inset 0 1px 2px rgba(0,0,0,0.04);
}

.cpp-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Image Upload Area */
.cpp-upload-dropzone {
    border: 2px dashed #a5acad;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    background: #fdfefe;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 15px;
}

.cpp-upload-dropzone:hover {
    border-color: #30d9e8;
    background: #f4fdfe;
}

.cpp-upload-icon {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

.cpp-upload-text {
    font-size: 14px;
    color: #5c6f71;
    font-weight: 500;
}

.cpp-upload-hint {
    font-size: 12px;
    color: #9aa5a6;
    margin-top: 5px;
    display: block;
}

.cpp-image-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.cpp-image-preview-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid #dfe7e8;
}

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

.cpp-image-remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(209, 26, 42, 0.9);
    color: #ffffff;
    border: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cpp-image-remove-btn:hover {
    background: #9b1c1c;
}

.cpp-image-preview-loading {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpp-image-preview-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #30d9e8;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: cppSpin 1s linear infinite;
}

/* Checkbox design */
.cpp-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    margin-bottom: 12px;
    font-size: 14px;
    color: #3c4546;
}

.cpp-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0 0;
    cursor: pointer;
    border: 1.5px solid #a5acad;
    border-radius: 4px;
}

/* AI Filter Box */
.cpp-ai-toggle-box {
    background: #f4fdfe;
    border: 1px solid #dcf6f9;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
}

.cpp-ai-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 3px !important;
    cursor: pointer;
}

.cpp-ai-toggle-text {
    flex: 1;
}

.cpp-ai-toggle-title {
    font-size: 15px;
    font-weight: 600;
    color: #0d5f66;
    margin: 0 0 4px 0;
}

.cpp-ai-toggle-desc {
    font-size: 13px;
    color: #5c6f71;
    margin: 0;
    line-height: 1.5;
}

/* AI Processing screen */
.cpp-ai-loader {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.cpp-ai-loader-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #30d9e8;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: cppSpin 1s linear infinite;
    margin: 0 auto 20px auto;
}

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

.cpp-ai-loader-text {
    font-size: 16px;
    font-weight: 500;
    color: #0d5f66;
}

/* Text Review Box */
.cpp-review-box {
    border: 1px solid #dfe7e8;
    border-radius: 16px;
    padding: 20px;
    background: #fcfdfd;
}

.cpp-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px dashed #eef5f6;
    padding-bottom: 10px;
}

.cpp-review-title {
    font-size: 14px;
    font-weight: 600;
    color: #0d5f66;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cpp-original-badge {
    background: #eef5f6;
    color: #5c6f71;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 99px;
}

.cpp-ai-badge {
    background: #e8fbfd;
    color: #0d5f66;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: bold;
}

/* Wizard Buttons */
.cpp-wizard-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.cpp-btn {
    border: 0;
    border-radius: 99px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.cpp-btn-prev {
    background: #ffffff;
    border: 1px solid #dfe7e8;
    color: #5c6f71;
}

.cpp-btn-prev:hover {
    background: #fcfdfd;
    border-color: #30d9e8;
    color: #111718;
}

.cpp-btn-next {
    background: #30d9e8;
    color: #111718;
    margin-left: auto;
}

.cpp-btn-next:hover {
    background: #22c7da;
    box-shadow: 0 4px 12px rgba(48, 217, 232, 0.25);
}

.cpp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cpp-btn-reset {
    background: #fcfdfd;
    border: 1px solid #dfe7e8;
    color: #5c6f71;
    margin: 20px auto 0 auto;
    display: flex;
}

.cpp-btn-reset:hover {
    background: #eef5f6;
    color: #111718;
}

/* Auth Tabs & Lead Gate Account Form */
.cpp-auth-tabs {
    display: flex;
    border-bottom: 2px solid #eef5f6;
    margin-bottom: 25px;
}

.cpp-auth-tab {
    flex: 1;
    text-align: center;
    padding: 14px;
    font-weight: 600;
    color: #9aa5a6;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    font-size: 15px;
}

.cpp-auth-tab.active {
    color: #30d9e8;
    border-bottom-color: #30d9e8;
}

.cpp-auth-tab-content {
    display: none;
    animation: cppFadeIn 0.3s ease;
}

.cpp-auth-tab-content.active {
    display: block;
}

.cpp-alert {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
    text-align: left;
}

.cpp-alert-error {
    background: #fdf2f2;
    border: 1px solid #fbd5d5;
    color: #9b1c1c;
}

.cpp-alert-success {
    background: #f3faf7;
    border: 1px solid #def7ec;
    color: #03543f;
}

/* Profile / Dashboard Layout */
.cpp-profile-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eef5f6;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.cpp-user-badge {
    font-size: 14px;
    color: #5c6f71;
}

.cpp-user-logout {
    color: #d11a2a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.cpp-user-logout:hover {
    text-decoration: underline;
}

.cpp-protocol-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cpp-protocol-card {
    border: 1px solid #eef5f6;
    border-radius: 16px;
    padding: 20px;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: all 0.2s ease;
}

.cpp-protocol-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    border-color: #dfe7e8;
}

.cpp-protocol-info {
    flex: 1;
    text-align: left;
}

.cpp-protocol-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #9aa5a6;
    margin-top: 6px;
}

.cpp-protocol-tag {
    background: #f4fdfe;
    color: #0d5f66;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: 600;
}

.cpp-protocol-actions {
    display: flex;
    gap: 8px;
}

.cpp-action-btn {
    border: 0;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cpp-action-btn-download {
    background: #e8fbfd;
    color: #0d5f66;
}

.cpp-action-btn-download:hover {
    background: #30d9e8;
    color: #111718;
}

.cpp-action-btn-delete {
    background: #fff0f0;
    color: #9b1c1c;
}

.cpp-action-btn-delete:hover {
    background: #d11a2a;
    color: #ffffff;
}

.cpp-profile-danger-zone {
    margin-top: 50px;
    padding: 24px;
    border: 1px solid #fbd5d5;
    background: #fdf2f2;
    border-radius: 16px;
    text-align: left;
}

.cpp-danger-title {
    font-size: 16px;
    font-weight: 700;
    color: #9b1c1c;
    margin: 0 0 8px 0;
}

.cpp-danger-desc {
    font-size: 13px;
    color: #771d1d;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.cpp-btn-danger {
    background: #d11a2a;
    color: #ffffff;
}

.cpp-btn-danger:hover {
    background: #9b1c1c;
}

/* Success icons */
.cpp-success-icon {
    font-size: 48px;
    color: #30d9e8;
    margin-bottom: 15px;
}

.cpp-success-title {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    color: #111718;
    margin-bottom: 10px;
}
