/* Dark Theme CSS - Only styles classes/elements from the HTML */
/* Does NOT style body or any global elements */

/* Main Container Table */
table.DivSubmitContainer {
    width: 1400px;
    background-color: #121212;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Table Cells */
table.DivSubmitContainer td {
    padding: 12px 16px;
    border-bottom: 1px solid #2a2a2a;
    vertical-align: top;
}

/* Title Rows */
.DivSubmitTitle {
    background-color: #232F3F !important;
    border-bottom: 2px solid #FF6A00 !important;
    padding: 14px 16px !important;
}

.SubmitTitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: #FF6A00;
    letter-spacing: 0.5px;
    display: block;
}

.SubmitTitle span {
    color: #FF6A00;
}

/* Label Columns (A) */
.DivSubmitA {
    width: 200px;
    background-color: #1a1a1a;
    font-weight: 500;
    color: #DDDDDD;
}

.ColonA {
    display: inline-block;
    font-size: 0.9rem;
}

.DivSubmitA span:first-child {
    color: #FF6A00;
    font-weight: bold;
    margin-right: 4px;
}

/* Input Columns (B) */
.DivSubmitB {
    background-color: #121212;
}

/* Input Fields, Selects, Textareas */
.InputText, .Select, .TextArea, .InputTextZ {
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    color: #FFFFFF;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    width: auto;
    min-width: 250px;
}

.InputText:focus, .Select:focus, .TextArea:focus, .InputTextZ:focus {
    outline: none;
    border-color: #FF6A00;
    box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.2);
    background-color: #333;
}

.Select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23FF6A00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.TextArea {
    width: 100%;
    resize: vertical;
    font-family: inherit;
}

/* Checkbox and Label Styling */
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    accent-color: #FF6A00;
    cursor: pointer;
    vertical-align: middle;
}

#Resale {
    float: left;
    margin-left: 12px;
    color: #DDDDDD;
    display: inline-flex;
    align-items: center;
}

/* Submit Button */
.InputButton {
    background-color: #FF6A00;
    border: none;
    color: #121212;
    font-weight: bold;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 1px;
}

.InputButton:hover {
    background-color: #e05e00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

/* DivFeatures container */
#DivFeatures {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 8px;
    min-height: 40px;
}

/* Dynamic Option Divs - All DivOption and DivValue elements */
div[id^="DivOption"], div[id^="DivValue"] {
    background-color: #2a2a2a;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 4px 0;
    color: #DDDDDD;
}

/* Inner tables for Titles/Keywords */
table.DivSubmitContainer table {
    width: 100%;
    border-collapse: collapse;
}

table.DivSubmitContainer table td {
    background-color: transparent !important;
    border: none;
    padding: 8px 4px;
}

table.DivSubmitContainer table input {
    width: 98%;
}

/* Character counter styling */
#EnItemLength, #ArItemLength,
#EnMetaDescriptionLength, #ArMetaDescriptionLength {
    background-color: #37475A;
    color: #FFFFFF;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-align: center;
    min-width: 40px;
    display: inline-block;
}

/* Placeholder styling */
::placeholder {
    color: #888;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #888;
}

::-ms-input-placeholder {
    color: #888;
}

/* File input styling */
input[type="file"] {
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    color: #DDDDDD;
    padding: 8px;
    border-radius: 6px;
    width: 100%;
}

/* Admin/User Notes specific */
.DivSubmitAB {
    background-color: #1a1a1a;
}

/* Private/CRM row text */
.DivSubmitAB .ColonA, .DivSubmitAB .ColonB {
    color: #DDDDDD;
}

/* Assign To select width */
#AttributedUserID {
    min-width: 280px;
}

/* Hover effects for interactive elements */
.Select:hover, .InputText:hover, .TextArea:hover {
    border-color: #FF6A00;
}

/* DivRegion input specific */
#DivRegion input {
    width: 100%;
    max-width: 400px;
}

/* Dark scrollbar for textareas only */
.TextArea::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.TextArea::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.TextArea::-webkit-scrollbar-thumb {
    background: #FF6A00;
    border-radius: 4px;
}

.TextArea::-webkit-scrollbar-thumb:hover {
    background: #e05e00;
}