/**
 * GF Form Main - Main Styles
 * 
 * Główne style dla modułu gf-form-main
 * 
 * @package GF_Form_Manager
 * @version 1.0.0
 */

/* Reset i podstawowe style */
.gf-form-container,
.moje-dokumenty-container {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
}

.moje-dokumenty-container{
    overflow: hidden;
}
/* Formularze */
.gf-form {
    margin: 0 auto;
}

.gf-field {
    margin-bottom: 20px;
}

.gf-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.gf-field .required {
    color: #d63638;
}

.gf-field input,
.gf-field textarea,
.gf-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.gf-field input:focus,
.gf-field textarea:focus,
.gf-field select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

.gf-submit {
    margin-top: 20px;
    text-align: center;
}

.gf-button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.gf-button:hover {
    background: #005a87;
}

.gf-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.gf-save-state-button {
    background: #28a745 !important;
    margin-left: 10px;
}

.gf-save-state-button:hover {
    background: #218838 !important;
}

.gf-save-state-button:disabled {
    background: #ccc !important;
    cursor: not-allowed;
}

.gf-send-for-verification-button {
    background: #007cba !important;
    margin-left: 10px;
}

.gf-send-for-verification-button:hover {
    background: #005a87 !important;
}

.gf-send-for-verification-button:disabled {
    background: #ccc !important;
    cursor: not-allowed;
}

/* Moje dokumenty */
.document-item {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 3px;
    background: #f9f9f9;
}

.document-item h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.document-item p {
    margin: 0 0 15px 0;
    color: #666;
}

/* Modal */
.gf-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.gf-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 5px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.gf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.gf-modal-title {
    margin: 0;
    font-size: 18px;
}

.gf-modal-close {
    background: #dc3545 !important;
    border: none !important;
    font-size: 18px !important;
    cursor: pointer !important;
    color: white !important;
    padding: 0 !important;
    width: 35px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
    font-weight: bold !important;
    line-height: 1 !important;
    font-family: inherit !important;
    border-style: none !important;
    border-width: 0 !important;
    border-color: transparent !important;
}

.gf-modal-close:hover {
    background: #c82333 !important;
    color: white !important;
    transform: scale(1.05) !important;
}

/* Loading */
.gf-loading {
    text-align: center;
    padding: 20px;
}

.gf-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: gf-spin 1s linear infinite;
}

@keyframes gf-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Messages */
.gf-message {
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 3px;
}

.gf-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.gf-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.gf-message.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.gf-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive */
@media (max-width: 768px) {
    .gf-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .gf-form-container,
    .moje-dokumenty-container {
        padding: 15px;
    }
}
