/* PipWebAdmin Custom Styles */

/* General styles */
body {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

footer {
    margin-top: auto;
}

/* Card styles */
.card {
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-header {
    font-weight: 500;
}

.card-header .btn {
    border-radius: 0.25rem;
}

/* Table styles */
.table th {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Form styles */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Button styles */
.btn-group .btn {
    margin-right: 0.25rem;
}

.btn-group form {
    display: inline-block;
    margin-right: 0.25rem;
}

/* Badge styles */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Autocomplete styles */
.ui-autocomplete {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 9999 !important;
}

.ui-menu-item {
    padding: 5px;
}

.ui-menu-item:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-group {
        display: flex;
        flex-direction: column;
    }
    
    .btn-group .btn,
    .btn-group form {
        margin-right: 0;
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .d-flex.align-items-center {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .d-flex.align-items-center .form-text {
        margin-top: 0.5rem;
    }
}

/* Animation for loading states */
.loading {
    position: relative;
}

.loading:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading:before {
    content: "処理中...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    background: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}