/* style.css - Стили для приложения */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

header {
    background: linear-gradient(to right, #4b6cb7, #182848);
    color: white;
    padding: 25px 30px;
    text-align: center;
    position: relative;
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 10px;
}

.header-actions {
    position: absolute;
    top: 20px;
    right: 20px;
}

.card {
    padding: 25px;
    margin: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.card h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4b6cb7;
    box-shadow: 0 0 0 2px rgba(75, 108, 183, 0.2);
}

button {
    background: linear-gradient(to right, #4b6cb7, #182848);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
    margin-top: 10px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn {
    display: inline-block;
    background: linear-gradient(to right, #4b6cb7, #182848);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin: 5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-delete {
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    font-size: 0.9rem;
    margin-left: 10px;
}

.btn-reserve {
    background: #27ae60;
    color: white;
    padding: 5px 10px;
    font-size: 0.9rem;
    margin-left: 10px;
}

.btn-unreserve {
    background: #f39c12;
    color: white;
    padding: 5px 10px;
    font-size: 0.9rem;
    margin-left: 10px;
}

.item-list {
    list-style: none;
}

.item {
    padding: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-left: 4px solid #4b6cb7;
}

.item-name {
    font-weight: 600;
    font-size: 1.1rem;
    flex: 1;
    min-width: 200px;
}

.reserved {
    background: #fff8e1;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin: 5px 10px;
}

.inline-form {
    display: flex;
    align-items: center;
    gap: 5px;
}

.share-link {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    font-family: monospace;
    word-break: break-all;
    margin: 15px 0;
}

.error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #c62828;
}

@media (max-width: 600px) {
    .container {
        margin: 10px;
    }
    
    .card {
        padding: 20px 15px;
    }
    
    .item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .inline-form {
        width: 100%;
        justify-content: space-between;
    }
    
    .btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .header-actions {
        position: static;
        margin-top: 15px;
    }
}