/* Custom styles for Botly */

/* Form input field styles - consistent across the application */
.form-input {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgb(209 213 219);
    border-radius: 0.375rem;
    background-color: white;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(17 24 39);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: rgb(99 102 241);
    box-shadow: 0 0 0 3px rgb(99 102 241 / 0.1);
}

.form-input:disabled {
    background-color: rgb(249 250 251);
    cursor: not-allowed;
    opacity: 0.7;
}

.form-input::placeholder {
    color: rgb(156 163 175);
}

/* Form select styles */
.form-select {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid rgb(209 213 219);
    border-radius: 0.375rem;
    background-color: white;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(17 24 39);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    appearance: none;
    transition: all 0.2s;
}

.form-select:focus {
    outline: none;
    border-color: rgb(99 102 241);
    box-shadow: 0 0 0 3px rgb(99 102 241 / 0.1);
}

/* Form textarea styles */
.form-textarea {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgb(209 213 219);
    border-radius: 0.375rem;
    background-color: white;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(17 24 39);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    resize: vertical;
    min-height: 5rem;
    transition: all 0.2s;
}

.form-textarea:focus {
    outline: none;
    border-color: rgb(99 102 241);
    box-shadow: 0 0 0 3px rgb(99 102 241 / 0.1);
}

/* Form label styles */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(55 65 81);
    margin-bottom: 0.25rem;
}

/* Form help text */
.form-help {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: rgb(107 114 128);
}

/* Form error text */
.form-error {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: rgb(239 68 68);
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: rgb(99 102 241);
    color: white;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.btn-primary:hover {
    background-color: rgb(79 70 229);
}

.btn-secondary {
    background-color: white;
    color: rgb(55 65 81);
    border-color: rgb(209 213 219);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.btn-secondary:hover {
    background-color: rgb(249 250 251);
}

.btn-danger {
    background-color: rgb(239 68 68);
    color: white;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.btn-danger:hover {
    background-color: rgb(220 38 38);
}

/* Card styles */
.card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    padding: 1.5rem;
}

.card-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgb(229 231 235);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: rgb(17 24 39);
}