/**
 * Component Styles - Material Design
 * Reusable components: buttons, inputs, badges, etc.
 */

/* Material Design Form Inputs */
.form-group input {
    width: 100%;
    padding: 16px 16px;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.42);
    border-radius: 4px 4px 0 0;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    background: rgba(255,255,255,0.09);
    color: #ffffff;
    transition: background-color 200ms cubic-bezier(0.0, 0, 0.2, 1),
                border-color 200ms cubic-bezier(0.0, 0, 0.2, 1);
}

.form-group input:hover {
    background: rgba(255,255,255,0.13);
    border-bottom-color: rgba(255,255,255,0.87);
}

.form-group input:focus {
    outline: none;
    border-bottom: 2px solid var(--md-primary);
    background: rgba(255,255,255,0.13);
    padding-bottom: 15px;
}

.form-group input::placeholder {
    color: rgba(255,255,255,0.6);
}

.filename-input {
    padding: 8px 12px;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.42);
    border-radius: 4px 4px 0 0;
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    background: rgba(255,255,255,0.09);
    color: #ffffff;
    transition: background-color 200ms cubic-bezier(0.0, 0, 0.2, 1),
                border-color 200ms cubic-bezier(0.0, 0, 0.2, 1);
    min-width: 180px;
}

.filename-input:hover {
    background: rgba(255,255,255,0.13);
    border-bottom-color: rgba(255,255,255,0.87);
}

.filename-input:focus {
    outline: none;
    border-bottom: 2px solid var(--md-primary);
    background: rgba(255,255,255,0.13);
    padding-bottom: 7px;
}

.filename-input::placeholder {
    color: rgba(255,255,255,0.6);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2px;
    backdrop-filter: blur(10px);
}

.status-connected {
    background: rgba(46, 125, 50, 0.2);
    color: #66bb6a;
    border: 1px solid rgba(46, 125, 50, 0.3);
}

.status-connected::before {
    content: '●';
    margin-right: 6px;
    font-size: 10px;
}

.status-disconnected {
    background: rgba(198, 40, 40, 0.2);
    color: #ef5350;
    border: 1px solid rgba(198, 40, 40, 0.3);
}

.status-disconnected::before {
    content: '●';
    margin-right: 6px;
    font-size: 10px;
}

.status-editing {
    background: rgba(239, 108, 0, 0.2);
    color: #ffa726;
    border: 1px solid rgba(239, 108, 0, 0.3);
}

.status-editing::before {
    content: '●';
    margin-right: 6px;
    font-size: 10px;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Material Design Buttons */
.load-button {
    width: 100%;
    padding: 10px 24px;
    background: var(--md-primary);
    color: #000000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.25px;
    transition: background-color 280ms cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 8px;
    /* Material Design elevation dp2 */
    box-shadow: 0px 3px 1px -2px rgba(0,0,0,0.2),
                0px 2px 2px 0px rgba(0,0,0,0.14),
                0px 1px 5px 0px rgba(0,0,0,0.12);
}

.load-button:hover:not(:disabled) {
    background: var(--md-primary-dark);
    /* Material Design elevation dp4 */
    box-shadow: 0px 2px 4px -1px rgba(0,0,0,0.2),
                0px 4px 5px 0px rgba(0,0,0,0.14),
                0px 1px 10px 0px rgba(0,0,0,0.12);
}

.load-button:active:not(:disabled) {
    /* Material Design elevation dp8 */
    box-shadow: 0px 5px 5px -3px rgba(0,0,0,0.2),
                0px 8px 10px 1px rgba(0,0,0,0.14),
                0px 3px 14px 2px rgba(0,0,0,0.12);
}

.load-button:disabled {
    background: var(--md-text-disabled);
    color: rgba(0,0,0,0.38);
    cursor: not-allowed;
    box-shadow: none;
}

.send-button, .cancel-button {
    padding: 0;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.send-button {
    background: linear-gradient(135deg, #ffffff 0%, #d0d0d0 100%);
    color: #000000;
    box-shadow: 0 4px 16px rgba(255,255,255,0.2);
}

.send-button:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(255,255,255,0.3);
}

.send-button:active:not(:disabled) {
    transform: scale(0.95);
}

.send-button:disabled {
    background: rgba(255,255,255,0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cancel-button {
    background: rgba(255, 59, 48, 0.9);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 59, 48, 0.3);
}

.cancel-button:hover:not(:disabled) {
    background: rgba(211, 47, 47, 1);
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(255, 59, 48, 0.4);
}

.cancel-button:active:not(:disabled) {
    transform: scale(0.95);
}

.cancel-button:disabled {
    background: rgba(255,255,255,0.3);
    cursor: not-allowed;
}

.fullscreen-button, .publish-button, .inspector-button {
    padding: 10px 16px;
    background: var(--md-primary);
    color: #000000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.25px;
    transition: background-color 280ms cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    /* Material Design elevation dp2 */
    box-shadow: 0px 3px 1px -2px rgba(0,0,0,0.2),
                0px 2px 2px 0px rgba(0,0,0,0.14),
                0px 1px 5px 0px rgba(0,0,0,0.12);
}

.fullscreen-button .material-icons,
.publish-button .material-icons,
.inspector-button .material-icons {
    font-size: 20px;
}

.fullscreen-button:hover, .publish-button:hover, .inspector-button:hover {
    background: var(--md-primary-dark);
    /* Material Design elevation dp4 */
    box-shadow: 0px 2px 4px -1px rgba(0,0,0,0.2),
                0px 4px 5px 0px rgba(0,0,0,0.14),
                0px 1px 10px 0px rgba(0,0,0,0.12);
}

.publish-button:disabled {
    background: var(--md-text-disabled);
    color: rgba(0,0,0,0.38);
    cursor: not-allowed;
    box-shadow: none;
}
