/* Estilos para o criador de posts */
.post-creator .post-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: flex-start;
}

.post-creator .form-section h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0.9;
}

/* Painel Esquerdo */
.left-panel .form-section {
    margin-bottom: 24px;
}

.account-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.account-selector .account-card {
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    user-select: none;
}

.account-selector .account-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.account-selector .account-card.selected {
    background: #8A2BE2;
    border-color: #8A2BE2;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.post-creator textarea {
    min-height: 200px;
    font-size: 16px;
    line-height: 1.6;
}

/* Painel Direito */
.right-panel {
    position: sticky;
    top: 28px;
}

.right-panel .form-section {
    margin-bottom: 24px;
}

.file-drop-area {
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.file-drop-area.dragover {
    background: rgba(138, 43, 226, 0.1);
    border-color: #8A2BE2;
}

.file-drop-area .input-file {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-drop-area .file-label .file-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,0.6)'%3E%3Cpath d='M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.file-drop-area .file-label p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

.file-drop-area .file-label .file-types {
    font-size: 12px;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.4);
}

#file-preview {
    margin-top: 15px;
    display: none;
}

#file-preview img, #file-preview video {
    max-width: 100%;
    border-radius: 8px;
}

.scheduler input {
    font-size: 15px;
}

.form-actions .btn-submit-post {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background-color: #1DA1F2;
    border: none;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.form-actions .btn-submit-post:hover {
    background-color: #0d8ddb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 161, 242, 0.4);
}

/* Estilos para a página de Gerenciar Contas */
.accounts-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.account-card-detailed {
    background: rgba(30, 30, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease-in-out;
}

.account-card-detailed:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.account-card-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.account-card-header .account-name {
    font-weight: 700;
    font-size: 1.1em;
    color: #fff;
}

.account-card-body {
    padding: 20px;
    flex-grow: 1;
}

.account-card-body p {
    margin: 0 0 10px;
    color: #ccc;
    font-size: 0.9em;
}

.account-card-footer {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
}


@media (max-width: 900px) {
    .post-creator .post-grid {
        grid-template-columns: 1fr;
    }
    .right-panel {
        position: static;
        top: auto;
    }
}

.flex-input-group {
    display: flex;
    gap: 12px;
    align-items: stretch;
    width: 100%;
}

.flex-input-group .form-control {
    flex: 1;
    min-width: 100px; /* guarantees it will not disappear */
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(0,0,0,0.2) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1) !important;
    color: #fff !important;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    height: 50px;
}

.flex-input-group .btn-secondary {
    flex: 0 0 auto;
    width: auto !important; /* Forces global button width: 100% to disable */
    padding: 0 24px;
    border-radius: 12px;
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: white !important;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 600;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap; /* Prevents text from wrapping */
}

.flex-input-group .btn-secondary:hover {
    background: rgba(255,255,255,0.2) !important;
}
