﻿/* --- Styling for the Drop Zone --- */

.upload-area.form-group {
    border: 3px dashed var(--border-color);
    padding: 2.5rem 1.5rem;
    text-align: center;
    background-color: #fdfdfd;
    transition: background-color 0.2s ease, border-color 0.2s ease; /* Smooth transition */
    position: relative;
    border-radius: var(--border-radius);
}

    /* --- THIS IS THE KEY STYLE --- */
    /* It applies when the 'drag-over' class is added */
    .upload-area.form-group.drag-over {
        border-color: var(--primary-color);
        background-color: var(--primary-color-soft, #e6f2ff); /* A light blue */
    }

        /* You can also add effects to the content inside when dragging over */
        .upload-area.form-group.drag-over .upload-drop-label i {
            transform: scale(1.1); /* Make the icon slightly bigger */
        }

        .upload-area.form-group.drag-over .upload-drop-label p strong {
            color: var(--primary-color); /* Highlight the main text */
        }


/* --- Modern Action Card Upload/Create Component Styles --- */
.action-card-wrapper {
    max-width: 800px; /* Control the overall width */
    margin: 3rem auto; /* Center with top/bottom margin */
}

.action-card {
    background-color: var(--card-bg, #fff);
    border-radius: 12px; /* Softer, larger radius */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); /* More pronounced shadow */
    overflow: hidden; /* Important for border-radius on children */
    border: 1px solid var(--border-color);
}

/* --- TABS --- */
.action-card-tabs {
    display: flex;
    background-color: #f7f9fc; /* Light background for the tab bar */
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.tab-button {
    flex: 1; /* Each tab takes equal space */
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary-color);
    background-color: transparent;
    border: none;
    border-radius: 6px; /* Rounded corners for individual tabs */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.25s ease-in-out;
}

    .tab-button:hover {
        background-color: rgba(0, 123, 255, 0.05); /* Subtle hover */
        color: var(--primary-hover);
    }

    .tab-button.active {
        background-color: var(--primary-color);
        color: white;
        box-shadow: 0 3px 8px rgba(0, 123, 255, 0.3);
    }

/* --- CARD BODY --- */
.action-card-body {
    padding: 2rem 2.5rem; /* Padding for the main content area */
}

.tab-pane {
    display: none; /* Hide inactive tabs */
}

    .tab-pane.active {
        display: block;
        animation: fadeInTab 0.4s ease;
    }

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-pane-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

    .tab-pane-header h3 {
        font-weight: 600;
        color: var(--dark-color);
        font-size: 1.4rem;
    }

    .tab-pane-header p {
        color: var(--secondary-color);
        font-size: 0.95rem;
        max-width: 450px;
        margin: 0.5rem auto 0 auto;
    }

/* --- Dotted Box & Text Area --- */
.dotted-upload-box {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    background-color: #fdfdff;
    transition: all 0.2s ease-in-out;
}

    .dotted-upload-box:hover {
        border-color: var(--primary-color);
        background-color: var(--primary-color-soft, #eef5ff);
    }

    .dotted-upload-box.drag-over {
        border-style: solid;
        border-color: var(--primary-color);
        background-color: var(--primary-color-soft, #eef5ff);
        transform: scale(1.01);
    }

    /* File Drop Zone */
    .dotted-upload-box .upload-drop-label {
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        min-height: 250px; /* Give it some height */
    }
/* ... (Keep styles for .upload-icon, .upload-title, .upload-or-line, etc. from previous answer) ... */

/* Text Input Box */
.text-input-box {
    padding: 0;
    min-height: 250px;
    display: flex;
}

    .text-input-box .raw-text-input {
        width: 100%;
        border: none;
        background-color: transparent;
        resize: none;
        padding: 1rem;
        font-size: 0.95rem;
    }

        .text-input-box .raw-text-input:focus {
            outline: none;
        }

.dotted-upload-box:focus-within { /* Highlight box when textarea is focused */
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}


/* --- CARD FOOTER --- */
.action-card-footer {
    background-color: #f8f9fc;
    padding: 1.5rem 2.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

    .action-card-footer .job-role-group {
        text-align: left; /* Keep label aligned left */
        margin-bottom: 1.5rem;
    }

        .action-card-footer .job-role-group .form-label {
            font-size: 0.9rem;
            font-weight: 500;
        }

.btn-submit-action {
    width: 100%;
    max-width: 400px;
}

.action-card-footer .alert {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Link to view existing uploads */
.existing-uploads-link {
    font-size: 0.9rem;
}

    .existing-uploads-link a {
        color: var(--secondary-color);
        text-decoration: none;
        font-weight: 500;
    }

        .existing-uploads-link a:hover {
            color: var(--primary-color);
            text-decoration: underline;
        }

    .existing-uploads-link i {
        margin-right: 0.4rem;
    }

/* Responsive fixes */
@media (max-width: 576px) {
    .action-card-body, .action-card-footer {
        padding: 1.5rem;
    }

    .tab-button {
        font-size: 0.85rem;
        gap: 0.4rem;
    }

        .tab-button .me-2 { /* Adjust icon margin */
            margin-right: 0.5rem !important;
        }
}